cleaning up texture2d creation