This function loads a mask for the active image layer.
If there was already a mask, it is replaced. You can load only gray images as mask.