finish save image.