Index: imagefield_crop.module
===================================================================
--- imagefield_crop.module	(revision 4)
+++ imagefield_crop.module	(working copy)
@@ -28,6 +28,39 @@
 }
 
 /**
+ * Implements hook_menu().
+ */
+function imagefield_crop_menu() {
+  $items = array();
+  
+  $items['admin/config/media/imagefield-crop'] = array(
+    'title' => t('Imagefield Crop settings'),
+    'description' => t('Provides various settings that can be changed for Imagefield Crop module'),
+    'page callback' => 'drupal_get_form',
+    'page arguments' => array('imagefield_crop_settings_form'),
+    'access arguments' => array('access content'),
+  );
+  
+  return $items;
+}
+
+/**
+ * Implements hook_form().
+ */
+function imagefield_crop_settings_form() {
+  $form = array();
+  
+  $form['imagefield_crop_hide_preview'] = array(
+    '#title' => t('Disable the preview pane.'),
+    '#description' => t('Disable the preview pane on an image field.'),
+    '#type' => 'checkbox',
+    '#default_value' => variable_get('imagefield_crop_hide_preview', 0),
+  );
+  
+  return system_settings_form($form);
+}
+
+/**
  * Implements hook_field_settings_form().
  */
 function imagefield_crop_field_settings_form($field, $instance) {
@@ -635,12 +668,14 @@
 }
 
 function theme_imagefield_crop_preview($variables) {
-  $info = $variables['element']['#imagefield_crop'];
-  $output = '<div class="jcrop-preview-wrapper" style="width:' . $info['#width'] . 'px;height:' . $info['#height'] . 'px;overflow:hidden;">';
-  $output .= $variables['element']['#markup'];
-  $output .= theme('image', array('path' => $info['#path'], 'alt' => 'jcrop-preview', 'attributes' => array('class' => 'jcrop-preview', 'style' => 'display:none')));
-  $output .= '</div>';
-  return $output;
+  if(variable_get('imagefield_crop_hide_preview', 0) != 1) {
+    $info = $variables['element']['#imagefield_crop'];
+    $output = '<div class="jcrop-preview-wrapper" style="width:' . $info['#width'] . 'px;height:' . $info['#height'] . 'px;overflow:hidden;">';
+    $output .= $variables['element']['#markup'];
+    $output .= theme('image', array('path' => $info['#path'], 'alt' => 'jcrop-preview', 'attributes' => array('class' => 'jcrop-preview', 'style' => 'display:none')));
+    $output .= '</div>';
+    return $output;
+  }
 }
 
 /*********************/
