Optimised renderPalettedTiles in Tileset.java