fixed issue #17

added caching of terrain tile sets