Averages colors of an image.