Photo masking teqnique

Hello all,

I’ve run into this website:

http://www.caniglia.com/

And I was wondering how this is done. I know it’s through masking somehow. Does anybody have a sample file of something similar?

Thanks for any help you could give.