"The mask is a binary image based on the document image." . . . .