Shouldn't need to use the url function here as theme('image', ...) calls out to file_create_url (http://api.drupal.org/api/drupal/includes!theme.inc/function/theme_image/7).