Uploading jpg's of faces and placing them in MC's

how exactly can I create something like this:
http://www.jibjab.com/sendables/303/Starring_You/Breakin

an option to upload a picture and place it in a video?

Thanks for the help!