Creating a wrapper for textures