track pose for two images