Photo Makeover Script?

Does anyone know how I can go about making a photo makeover generator?

I’m kind of looking for something like this, only something that will allow the user to upload their own photo first. This will be a makeover script that only changes the hairstyle.

Thanks.