When I try to convert multiple JPEG images to PDF using PIL, "a.jpg" is saved twice so now there are three PDF pages containing two of a.jpg and one b.jpg. The fol