Fix bug for image saving.