This is a ceres for monoslam2 (fixed version)