Threshold the mask to make sure it's pure black/white.