I am trying to change the saturation of an image by a certain amount but I am getting some strange results. I am using the following code
// shiftAmount should be