Correcting the range of RGB values in the function in which the gray points are exctracted. Results in more correct illuminant correction.