Creation of mask for model (doesn't wok