Fixed error for – Rerun from onComplete callback use case

Hello, firstly thank you very much for continuing to update this little gem.
This is just a small fix for the image total used to check when the plugin has done it's job.

Hope it is of use.