Added some Methods to Texture.cs