enh: use voxel dimension were erosion and smoothing, pep8 cleanup