Correct php syntax to add an image in wp functions.php

do use get_bloginfo() when working with strings;

example:

$capimg =  get_bloginfo('template_url').'/imagename.jpg';

tech