I would like to insert a background image contained in my_background_file.png in the title page of a presentation. Why doesn't the following code properly work? I simply get a title page, without any image on the background.
\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\title{YYYY}
\author{D.S.}
\institute{Some University}
\usepackage{transparent}
\usepackage{eso-pic}
\newcommand\BackgroundPic{%
\put(0,0){%
\parbox[b][\paperheight]{\paperwidth}{%
\vfill
\centering
{\transparent{0.4} \includegraphics[width=\paperwidth,height=\paperheight,%
keepaspectratio]{my_background_file.png}}%
\vfill
}}}
\begin{document}
\AddToShipoutPicture*{\BackgroundPic}
\titlepage
\end{document}
What's wrong with that?

