Added support for multiple textures