Dmitry Medvedev poses for a group photo with other G8 leaders