let diff image become mask image

I want to make a mask image easily.
So I add a flag for approve function. Let me get a mask image by a diff image.
And the masked area can be located easily.