k-means, initial image processing