ENH: Improve quality of MALF outputs

Some mask based post processing is now done to improve mask qualities.