Upgraded TextTexture class to inherit from Texture class