Color quantization using k-means
medium.com