Converts a color image to shades of gray. (Provides up to 256 gray shades.)