Add unit test to demonstrate #331
fixed pixel to color method for non-RGB palette
fixed pixel to color method for Grayscale palette