added chessboard calibration functions