Get the average colors from an image