Calibrating the image output