fill the mask with pattern