Added in depth plotting of mask process and smoothing on final mask