Wrote methods for learning the color variation in an image.