bugfix: media variable

I had introduced a bug into the media variable containing the filename
by adding a space in the template.