Fix getMesh() for atlases, can now use atlas and simple textures from the same API