gtsam work with 3 imgs