Removed legacy IO cruft; added bound checking to TileLayer