create mask for flood fill