linked media files to templates