Say I have the following two images:
before.jpg:

after.jpg:

I would like to be able to remove everything in before.jpg from after.jpg but I don’t want the things in before.jpg being added to after.jpg. I want the result to look like this:

Any idea how I can do this?