Length of image after dilation