Use median cut algorithm to quantize RGB values (if present) to 256
colors