Reworked map and tileset renderers. Fixed ArrayIndexOutOfBounds in MapCanvas.