tweaks to getTile functions + more functionality for layered rendering