Update issue 298
Access TileSource in a thread-safe way.
Get a reference to the TileSource at the beginning of TileLoader.loadTile() and use it for the entire method. Prevents issues when TileSource changes such as when the downloader downloads a tile with one TileSource but then incorrectly saves it using the new TileSource.