Once the detector metadata contain a flat-field correction image and a mask image, apply them to the binned image data.