Added erode_image to threshold and erode nifti images.