Creation of the masks