added mask dilation