Improved texture export by deleting some code