Added support for textures.