Fixed logix of the image saver