Finding dominant colors of an image using k-means clustering