First iteration of color quantization minus the interface