Fixing map generation to read file and display in correct orientation