fixed bug in handling of custom metadata fields
short-circuit for smoothing with 0 fwhm
support for non-binary ROI masks