Fix bug if no image is selected, correctly truncate if saving over another manifest.