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.