Do you see the text in this dog img ?

That is what I want to do now. I want to give the user a text box and whatever he types, I want it to appear in that uploaded (my uploaded or user uploaded) img.
I can't seem to get the script to work that I found on that link. I tried many scripts I found googling but always one problem after another.
If you know of or spot any good code online then do let me know.