Expand paletted images to 24 bits per pixel