minor bug fix in image save