The image becomes tinted  when I try to alter a pixel.