added texture disposal