Fix unmounting of the image.