fixed pixel to color method for non-RGB palette
fixed pixel to color method for Grayscale palette