Fixed memory leaks with Texture2D