Can I export masked images?

I’d like to use masked images for some experiments on adjusting mesh models. I know how to get the masks as separate png files, but Im wondering if it is possible export the combined image +_ mask in png or tiff format?