添加图像时phpWord文件增长问题

Ok, here's the scenario. I need to generate about 200 MS Word documents based off of data collected and stored in my database. Generating the word docs with or without photos is a user option. After Word doc generation I then want to create a zip file of all the files generated. The zip part is done, the word file generation for the most part is done.

When the user chooses to generate the reports without the photos, the site queries the database and returns about 200 records for the report, and then with a foreach loop I run the PHPWord coding to generate and write the files to a temp folder and then after the foreach loop I'm running code to zip them all up and then delete the temp files. Works great. BUT, when the option to generate the reports WITH photos is selected, it starts generating the Word docs, but the file sizes increase every time a file is created. First file is 70k, the second file is 140k, the third is 210k and so on, where each file should only be 70k each. The only difference in the two operations in the inclusion of the addImage commands with the table cells like so:

$table->addCell()->addImage('photos/thumb_image.jpg, $imageStyle);

Help please!

Use Media::resetElements() between loops that were available since 0.10.0.