It isn't really clear what you are trying to do, so I will just present a few options I see.
You can use a date/time stamp to automatically generate filenames so that you don't have to enter a filename every time you save an image. Use the format date/time string vi and use a custom format string. Make sure you avoid using illegal characters for a filename.
One option for saving all the images in the same file is the AVI functions. This is probably the most practical.
Another option is compressing each image into a string using the JPEG to string conversion routines, which can be found in this exchange by searching for "JPEG string". The input is an image and the output is a JPEG compressed string. The string is converted back to an image by using another routine. The strings can be manipulated in a number of ways. I frequently put them in an array and save them as a single file. This gives me a little more control over the images and compression than the AVI routines.
Bruce
Bruce Ammons
Ammons Engineering