Fixed wrong rendering for tilesets using tile sizes other than the map.