enh: replaced erosion with slicethickness and added epimask support for bbregister