Added support for rendering textures