upgrade camera calibration with averaging function for multiple markers