fixed pixel to color method for non-RGB palette

For non-RGB palettes the method Image::pixelToColor() returns invalid values. This will fix the multiplier which leads to invalid color values.
That is actually true, there is no component for gray color, even in a grayscale colorspace. R, G and B components are available and have the same values