Switched rendering from Texture2D to Graphics.Texture