How to use images in theme settings In Drupal 7, I am trying to put an image field to allow an image to be uploaded to the theme settings. 

I am using managed file from the form API to do this. Here is my code:

  $form['footer']['footer_logo'] = array(
  '#title' =&gt; t('Image'),
  '#type' =&gt; 'managed_file',
  '#description' =&gt; t('The uploaded image will be displayed on this page using the image style choosen below.'),
  '#default_value' =&gt; variable_get('footer_logo', ''),
  '#upload_location' =&gt; 'public://footer_logo/',
);


When I call the image using theme_get_setting('footer_logo'), I just get a set of numbers. How can I get the file path of the image instead? Also, is there away to pass the image through image cache settings.
It seems that this could provide an answer to your question :

$fid = theme_get_setting('footer_logo');
$image_url = file_create_url(file_load($fid)-&gt;uri);


(but I didn't test it).