Thanks @TryNinja for the effort to create this amazing script.
I tried it, at first it worked very well and did a lot of successful substitutions for a lot of the images, but some of the quotes included with the images were not replaced too and I got the following error:

Then the script stopped working after only completing 21%. I don't know what exactly caused the error, although it worked fine at first?