Fixed issues with texture destruction and made it better.