Add method to quantize a bitmap to the TA color palette