diff --git a/sites/all/modules/opengraph_meta/opengraph_meta.module b/sites/all/modules/opengraph_meta/opengraph_meta.module
old mode 100755
new mode 100644
index 6eb0554..e99dae8
--- a/sites/all/modules/opengraph_meta/opengraph_meta.module
+++ b/sites/all/modules/opengraph_meta/opengraph_meta.module
@@ -107,18 +107,22 @@ function opengraph_meta_form_alter(&$form, $form_state, $form_id) {
 
     // if we have images in this node then show thumbnail selector
     $images = OpenGraphMeta::instance()->harvest_images_from_node($node);
+    $first_image = '';
     if (!empty($images)) {
       $image_selector_options = array();
       foreach ($images as $image) {
+        if ($first_image == '')
+          $first_image = $image['url'];
         $image_selector_options[$image['url']] = OpenGraphMetaDrupalLayer::theme_selector_image($image);
       }
+      $default_img = !empty($node->opengraph_meta) ? $node->opengraph_meta[OpenGraphMeta::IMAGE] : '';
       $form['opengraph_meta'][OpenGraphMeta::IMAGE] = array(
         '#title' => t('Thumbnail image'),
         '#type' => 'radios',
-        '#default_value' => !empty($node->opengraph_meta) ? $node->opengraph_meta[OpenGraphMeta::IMAGE] : '',
+        '#default_value' => $default_img != '' ? $default_img : $first_image,
         '#description' => t('The thumbnail image that will get shown in e.g. a Facebook preview. If left unset then then the first available image will be used. If none available then the global fallback image will be used.'),
         '#options' => $image_selector_options,
-        '#attributes' => array('class' => 'opengraph-thumbs-wrapper clearfix'),
+        '#attributes' => array('class' => array('opengraph-thumbs-wrapper', 'clearfix')),
       );
     }
   }
