Tileset loader refactor