If you want to do this from the model itself you need to use an additional output where you will multiply the original input image with the binarized output mask.
If you don’t need to do this in the model you can do the same as a post-processing step.