Made some improvements to TileViewer.