Function to create multi-page PDFs from JPG images.
Small update