faster color histogram, using fixed time lookup for color quantization rather then recalculating for every pixel