Added support for atlas textures