release textures in destructor