I remember this is what Paheal is generated to do, it's a pretty good feature.
In some cases it can be hard to track down a particular piece, like for example because it's missing a character tag or an artist tag that needs to be added.
If an image lacked any tags whatsoever then you couldn't track down the dupe to tag it at all!
Is there some way to alter the script generated to give a URL to click?