release textures when releasing material