Updated lfcd.py to incorporate binary mask dilation via scipy.ndimage