fixed bug with saving images

Signed-off-by: Jon Yardley <Jon.Yardley@digitaslbi.com>