Generating and saving multiple images using img2img pipeline

In the StableDiffusionImg2ImgPipeline, you can generate multiple images by adding the parameter num_images_per_prompt. But what is the best way to save all those images to a directory? All the examples I can find show doing: image[0].save(ā€œfilenameā€)

Do you have to do one at a time:
image[0].save(ā€œfilenameā€)
image[1].save(ā€œfilenameā€)
image[2].save(ā€œfilenameā€)

And so on?