diff --git a/pdfthumb.module b/pdfthumb.module
index bbb974d..fa836d1 100644
--- a/pdfthumb.module
+++ b/pdfthumb.module
@@ -51,6 +51,12 @@ function pdfthumb_settings() {
     '#default_value' => variable_get('pdfthumb_convertpath', NULL),
   );
 
+  $form['settings']['pdfthumb_destdir'] = array(
+    '#type' => 'textfield',
+    '#title' => t("Destination directory for thumbnails"),
+    '#description' => t('Default is: ') . file_build_uri(""),
+    '#default_value' => variable_get('pdfthumb_destdir', NULL),
+  );
   $form['settings']['pdfthumb_link_files'] = array(
     '#type' => 'checkbox',
     '#title' => t('Link PDF with Image File. When you will delete the pdf file, the associated image file will be deleted.'),
@@ -144,6 +150,11 @@ function pdfthumb_settings_validate($form, &$form_state) {
       form_set_error('pdfthumb_convertpath', t('I can not find convert. Check the path and try again.'));
     }
   }
+  if (!file_exists($form_state['values']['pdfthumb_destdir']) ||
+      !is_dir($form_state['values']['pdfthumb_destdir']) ||
+      !is_writable($form_state['values']['pdfthumb_destdir'])) {
+    form_set_error('pdfthumb_destdir', t('Destination directory is either non-existant or unwritable.'));
+  }
 }
 
 /**
@@ -274,7 +285,7 @@ function pdfthumb_create_thumb($fid) {
 
     if ($status == 0) {
       global $user;
-      $file_uri = file_unmanaged_move($dest);
+      $file_uri = file_unmanaged_move($dest, variable_get('pdfthumb_destdir', NULL));
       $file = new stdClass();
       $file->uid = $user->uid;
       $file->status = 1;
