diff --git a/jail.module b/jail.module
index 1dee1d0..b8781de 100644
--- a/jail.module
+++ b/jail.module
@@ -123,7 +123,7 @@ function jail_field_formatter_view($entity_type, $entity, $field, $instance, $la
   $element = array();
   $settings = $display['settings'];
   $effect = $settings['jail_effect'];
-
+  $placeholder = file_create_url(variable_get('jail_place', drupal_get_path('module', 'jail') . '/white.gif'));
   // Check if the formatter involves a link.
   if ($display['settings']['jail_image_link'] == 'content') {
     $uri = entity_uri($entity_type, $entity);
@@ -150,6 +150,7 @@ function jail_field_formatter_view($entity_type, $entity, $field, $instance, $la
          //@TODO add links '#path' => isset($uri) ? $uri : '',
           '#jail_effect' => $effect,
           '#path' => isset($uri) ? $uri : '',
+          '#placeholder' => $placeholder,
         );
       }
       return $element;
@@ -199,13 +200,23 @@ function theme_jail_formatter($variables) {
   }
   drupal_add_js(drupal_get_path('module', 'jail') . '/jquery.jail.js');
 
-  $placeholder_url = file_create_url(variable_get('jail_loader', drupal_get_path('module', 'jail') . '/white.gif'));
+  $loader_image = variable_get('jail_loader', drupal_get_path('module', 'jail') . '/white.gif');
 
-  $js = '(function ($) {$(".lazy").jail({placeholder : "' . $placeholder_url . '"';
+  $options = array();
+  if ($loader_image) {
+    $placeholder_url = file_create_url(variable_get('jail_loader', drupal_get_path('module', 'jail') . '/white.gif'));
+    $options['placeholder_fragment'] = 'placeholder : "' . $placeholder_url . '"';
+  }
   if ($variables['jail_effect'] != "none") {
-    $js .= ', effect : "' . $variables['jail_effect'] . '"';
+    $options['jail_effect'] = 'effect : "' . $variables['jail_effect'] . '"';
   }
-  $js .= '});})(jQuery);';
+
+  $js_options = '';
+  if ($options) {
+    $js_options = '{' . implode(', ', $options) . '}';
+  }
+
+  $js = '(function ($) {$(".lazy").jail(' . $js_options . ');})(jQuery);';
   drupal_add_js($js, array('type' => 'inline', 'scope' => 'footer', 'weight' => 5));
   return $output;
 }
