Using python and k-means to find the dominant colors in images