I would like to add a mask to an image and return it as an image with the mask.
Here is what I am trying to achieve visually:
Source image:
Mask