Added a function to save all images as one pdf.