Implement paletted texture loading