added onUnMask postprocessing function #351
Merge branch '2.x' into 2.6