read/write for camera calibration