pixelmask generation wrt saturation criteria fixed (potentially). small cleanup.