Implemented new color correction method using gain and factor for RGB values.