fix grayscale palette in PIXqImage