integrated whole image save feature with main