diff --git a/adaptive_image.admin.inc b/adaptive_image.admin.inc
index e69de29..68cb894 100644
--- a/adaptive_image.admin.inc
+++ b/adaptive_image.admin.inc
@@ -0,0 +1,29 @@
+<?php
+
+/**
+ * Main settings and review administration screen.
+ */
+function adaptive_image_settings_form() {
+  $form = array();
+  $options = array(
+    '0' => t('Use visitor device width'),
+    '320' => t('320px wide'),
+    '480' => t('480px wide'),
+    '768' => t('768px wide'),
+    '992' => t('992px wide'),
+    '1382' => t('1382px wide'),
+  );
+
+  $form['adaptive_image_screen_size'] = array(
+    '#type' => 'select',
+    '#options' => $options,
+    '#title' => t('Screen width'),
+    '#default_value' => variable_get('adaptive_image_screen_size', '0'),
+    '#description' => t('Select a screen width for debugging. Set to "Use visitor device width" to disable debugging mode.'),
+  );
+
+  // Magic function which will add submit button
+  // and make us free from writing a submit handler
+  return system_settings_form($form);
+}
+
diff --git a/adaptive_image.module b/adaptive_image.module
index a3c4b5a..2943f18 100644
--- a/adaptive_image.module
+++ b/adaptive_image.module
@@ -18,8 +18,16 @@ function adaptive_image_init() {
   // here by intention, as we want it inline to prevent wait time while loading
   // the script
 
+  // Enable debugging mode
+  $screen_size = variable_get('adaptive_image_screen_size', '0');
+
   // No need for drupal behaviours, jquery compatibility wrapper nor ready event
-  $js = "document.cookie = 'adaptive_image=' + Math.max(screen.width, screen.height) + '; path=/';";
+  if($screen_size > 0) {
+    $js = "document.cookie = 'adaptive_image=' + ". $screen_size ." + '; path=/';";
+  }
+  else {
+    $js = "document.cookie = 'adaptive_image=' + Math.max(screen.width, screen.height) + '; path=/';";
+  }
   drupal_add_js($js,
     // First-come, first-served
     array(
@@ -38,6 +46,19 @@ function adaptive_image_init() {
 function adaptive_image_menu() {
   $items = array();
 
+  // Add a page where we can switch to debugging mode.
+  $items['admin/config/media/adaptive_image'] = array(
+    'title'            => 'Adaptive Image',
+    'description'      => 'Configure Adaptive Image settings',
+    'access callback'  => 'user_access',
+    'access arguments' => array('administer site configuration'),
+    'page callback'    => 'drupal_get_form',
+    'page arguments'   => array('adaptive_image_settings_form'),
+    'file'             => 'adaptive_image.admin.inc',
+  );
+
+
+
   // Add image style generation paths adaptive URLs.
   if (module_exists('image')) {
     // Generate and deliver image derivatives of public files.
@@ -61,6 +82,8 @@ function adaptive_image_menu() {
     );
   }
 
+
+
   return $items;
 }
 
