count masked pixels
comment out disable saturation level logic, adjust constants