You can write an "image resemblace" search engine. You can do it in Perl and Gimp Script. You can have Gimpscript pull up the image in Gimp, identify a couple of main "points" on the pic, and then pull every single pic on the internet and compare them to that information.
That would be OK if used by only one person, and the search would take minutes, depending on the server's abilities, but if it was a multi-user, "free-to-the-public" thing, it would kill the server if more than 3 or 4 ppl used it at the same time...
It can be done, though...