Updated Texture class