An Investigation into Automatic Photometric Calibration