Generate a pdf when images are added to a folder