working gamma correction & quantization, now need to translate each input pixel to cluster dot matrix