Using Texture instead of depracated Texture2D