added support for textures