\setbeamertemplate{background}{
\begin{tikzpicture}
+ \ifbeamer@sectionframe%
+ \node[anchor=south west, inner sep=0] at (0,0) {\includegraphics[width=\paperwidth, height=\paperheight]{theme.nonfree/bgpics/pgpro_title_bg2.png}};
+ \else
+ \ifbeamer@closingframe%
+ \node[anchor=south west, inner sep=0] at (0,0) {\includegraphics[width=\paperwidth, height=\paperheight]{theme.nonfree/bgpics/pgpro_thanks_bg.png}};
+ \else
\ifnum\thepage=1\relax%
\node[anchor=south west,inner sep=0] at (0,0) {\includegraphics[width=\the\paperwidth, height=\the\paperheight]{theme.nonfree/bgpics/pgpro_title_bg.png}};
\fi
\ifnum\thepage>1\relax%
\node[anchor=south west, inner sep=0] at (0,0) {\includegraphics[width=\the\paperwidth, height=\the\paperheight]{theme.nonfree/bgpics/pgpro_page_bg.png}};
\node[anchor=east] at(\textwidth+1cm,0.5cm) {\color{text}\tiny\insertframenumber};
- \fi
+ \fi\fi\fi
\end{tikzpicture}
}