Fixed/wrote image calibration functions