### Eclipse Workspace Patch 1.0
#P gaia.kody
Index: app/sites/all/modules/contrib/captcha/image_captcha/image_captcha.module
===================================================================
--- app/sites/all/modules/contrib/captcha/image_captcha/image_captcha.module	(revision 9065)
+++ app/sites/all/modules/contrib/captcha/image_captcha/image_captcha.module	(working copy)
@@ -215,6 +215,9 @@
         // build the result to return
         $result = array();
 
+        // Use javascript for some added usability (e.g. image reload).
+        drupal_add_js(drupal_get_path('module', 'image_captcha') .'/image_captcha.js');
+
         $result['solution'] = $code;
         // Generate image source URL (add timestamp to avoid problems with
         // client side caching: subsequent images of the same CAPTCHA session
@@ -222,7 +225,7 @@
         $img_src = check_url(url("image_captcha/$captcha_sid/". time()));
         $result['form']['captcha_image'] = array(
           '#type' => 'markup',
-          '#value' => '<img src="'. $img_src .'" alt="'. t('Image CAPTCHA') .'" title="'. t('Image CAPTCHA') .'" />',
+          '#value' => '<img src="'. $img_src .'" class="captcha_image" id="captcha_image_'. $captcha_sid .'" alt="'. t('Image CAPTCHA') .'" title="'. t('Image CAPTCHA') .'" />',
           '#weight' => -2,
         );
         $result['form']['captcha_response'] = array(
Index: app/sites/all/modules/contrib/captcha/image_captcha/image_captcha.js
===================================================================
--- app/sites/all/modules/contrib/captcha/image_captcha/image_captcha.js	(revision 9065)
+++ app/sites/all/modules/contrib/captcha/image_captcha/image_captcha.js	(working copy)
@@ -33,5 +33,10 @@
 	$("#edit-image-captcha-distortion-amplitude").change(smooth_distortion_shower);
 	// Show or hide appropriately on page load.
 	smooth_distortion_shower(0)
+	
+	// Add a click event to CAPTCHA images to reload the CAPTCHA image
+	$(".captcha_image").click(function() {
+		$(this).attr('src', $(this).attr('src').replace(/\?.*$/, '') + '?r=' + Math.random());
+	})
 
 };
