Added support for textures using palettes again