Color quantization using k-means