First working version of the Texture class.