drupal_get_path() not working in subdirectories of my site
Its because drupal_get_path returns relative path.

Try this:

&lt;?php 
  global $base_path;
  $src = $base_path . drupal_get_path('theme', $GLOBALS['theme']) . '/imag/carrots.png'; 
  echo '&lt;img src=' . $src . ' alt="carrot background image" &gt;'
?&gt;


Edit with url function:

&lt;?php 
  $src = url(drupal_get_path('theme', $GLOBALS['theme']) . '/imag/carrots.png'); 
  echo '&lt;img src=' . $src . ' alt="carrot background image" &gt;'
?&gt;