Easily extract primary colors in an image using k-means.