Median cut color quantization