Here is your problem:
When you extract your image in the loop, it replaces the original image with the extracted image. The second time through the loop, you are starting with the extracted image instead of the original image.
What you need to do is feed both the original and destination images into the loop. Each time you do the extract, use the original as the source and the destination image as dest. This way, each time through the loop you will start with the original image.
Bruce
Bruce Ammons
Ammons Engineering