Updated tilemanager to make it working with current libraries, by now works only...