Fix to allow calibration on images that are not 640x480