Calibrating an area-detector diffractometer: imaging geometry