another fix for saving external textures