workaround for blender bug (unused textures are not deleted from context)