Add image over another image in Swift

In my swift project I am capturing an image of a human. Now I have to add dress on him(Just like in a shop, how a shop owner add dress on a model). Can any one suggest me how can I do this programmatically?

And the output will looks like:

this

or

this and so on.