I wouldn’t put too much stock in that photo...There are all kinds of pictures of politicians, celebrities, etc together, even though some actually hate each other...
That was from a TV ad that Gingrich ran with Pelosi touting the threat of global warming. He was a paid shill for an "alternative energy" industry lobbying group at the time.
Newt Gingrich is exactly the kind of @sshole the Republican Party needs to purge from its ranks in order to win back the trust of its grassroots supporters.