Updated loadTileImages to be a direct port of the pytmx PyGame loader.