fixed a few issues related to NaN's

1) Set NaN's to 0 before smoothing. SciPy smoothing functions would otherwise grow the NaN region
2) Set voxels that are NaN in the input cube to False in the final binary mask