Added PreloadTiles for saving to a file