I'm convinced the tags are just random, seeded by message ID. The images themselves don't seem to be checked at all.
Ahh, I never tried using an image that had already been posted - does it give different results? Would have been a nice little Easter egg though.