[Bug 7334] Workaround for lack of 8bpp (8-bit, 256 color) support on 24bpp displays