Add unit test to demonstrate #331
fixed pixel to color method for non-RGB palette
fixed pixel to color method for Grayscale palette
Merge pull request #333 from romainneutron/pCoLaSD-331

fixed pixel to color method for non-RGB palette