Index: background-imagekit-theme-settings.inc
===================================================================
--- background-imagekit-theme-settings.inc	(revision 8)
+++ background-imagekit-theme-settings.inc	(working copy)
@@ -1,24 +1,24 @@
-<?php
-// SOOPER Background-ImageKit
-$form['background_options'] = array(
-  '#title' => t('SOOPER Background-Image Kit'),
-  '#type' => 'fieldset',
-  '#collapsible' => TRUE,
-  '#collapsed' => TRUE,
-'#weight' => 5,
-);
-
-$bg_images['none'] = 'none';
-$bg_image_suffix = '<p><strong>'. t('Available background images:') .'</strong></p>';
-foreach (file_scan_directory($theme_path .'images/backgrounds', '/\.(jpg|gif|png?)$/') as $file) {
-  $bg_images[$file->filename] = $file->filename;
-  $bg_image_suffix .= '<p>'. $file->filename .'</p> <div class="demo-background" style="background:url(/'. $file->uri .');"></div>';
-}
-$form['background_options']['background_image'] = array(
-  '#type'          => 'select',
-  '#title'         => t('Background Image'),
-  '#default_value' => theme_get_setting('background_image'),
-  '#options'       => $bg_images,
-  '#suffix'        => $bg_image_suffix,
-  '#prefix'        => '<p>Selecting a new background image makes it visible immediately. If you want to add your own images, add them to the images/backgrounds folder in the theme directory and it will show up here automatically.</p>'
+<?php
+// SOOPER Background-ImageKit
+$form['background_options'] = array(
+  '#title' => t('SOOPER Background-Image Kit'),
+  '#type' => 'fieldset',
+  '#collapsible' => TRUE,
+  '#collapsed' => TRUE,
+'#weight' => 5,
+);
+
+$bg_images['none'] = 'none';
+$bg_image_suffix = '<p><strong>'. t('Available background images:') .'</strong></p>';
+foreach (file_scan_directory($theme_path .'images/backgrounds', "(.*?)\.(jpg|png|gif)") as $file) {
+  $bg_images[$file->name] = $file->name;
+  $bg_image_suffix .= '<p>'. $file->filename .'</p> <div class="demo-background" style="background:url('.$base_url.base_path().'/'. $file->filename .');"></div>';
+}
+$form['background_options']['background_image'] = array(
+  '#type'          => 'select',
+  '#title'         => t('Background Image'),
+  '#default_value' => theme_get_setting('background_image'),
+  '#options'       => $bg_images,
+  '#suffix'        => $bg_image_suffix,
+  '#prefix'        => '<p>Selecting a new background image makes it visible immediately. If you want to add your own images, add them to the images/backgrounds folder in the theme directory and it will show up here automatically.</p>'
 );
\ No newline at end of file
