Updated the structure of the Texture class