I am new to python. I am currently trying to merge multiple images into a pdf file. However, I can only out the last image file to the pdf instead of all images. Am I missing so