Use theme('image', $variables) here http://api.drupal.org/api/drupal/includes!theme.inc/function/theme_image/7? Also for future reference using $base_url is generally bad. Can use the url function or file_create_url.