Add option to filter out pixels that are flagged as invalid by the camera.