Function to change the background color of a magick image plot to another color
changeImageBg(
mg_object,
bg_color,
perc_range = 10,
new_color = "#FFFFFF",
new_name = NULL
)
magick image or giotto image object
estimated current background color
range around estimated background color to include (percentage)
new background color
change name of Giotto image
magick image or giotto image object with updated background color