Handle paletted images correct