I am not very sure if I am correct, but as far as I remmember imagemagick has a text watermark insert feature, and there are deffinently tons of free auto scripts that take advantage of that. However I do remmember seeing a script that adds a picture watermark om hotscripts.com, although you had to pay for it.
-Mike