Fix commit 8bcf7c609cd457c2b2b361448b287b79a57b6183
fixed pixel to color method for Grayscale palette