Javascript - invert the colors of a picture on a canvas

Save the img