How to mask an image (when mask, actually, hides the portion of the image - not highlights it)?

Hello dear OpenCV community.
I’ve been following this tutorial to create a mask. You can see how his “mask” leaves only his face and removes the rest of the image. I want exactly the opposite: to hide the face and leave the rest of the image.
What should I change in his code to do that?
Thank you in advance.
Ivan

For those interested, I’ve found the answer here. Thank you so very much to Maximinusjoshus who is the author of that post!
Briefly the solution looks like the following.
One need to invert the mask first and then apply cv2.bitwise_and.
Thus, right before the line masked = cv2.bitwise_and(image, image, mask=mask) one should add the line mask_inv = cv.bitwise_not(mask). Then change the original line to masked = cv2.bitwise_and(image, image, mask=mask_inv) (I’m talking about the post that I cited in my question).
And everything works: the mask hides the portion of the image under it and leaves the portion of the image around it.
Ivan

all of that is explained in official docs. no need to find blog posts.

https://docs.opencv.org/4.x/d0/d86/tutorial_py_image_arithmetics.html