Allow use of `\includegraphics[size]` in beamer.

This just required porting a macro definition from the default
latex template to the default beamer template.