Index: image_captcha.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/captcha/image_captcha/image_captcha.module,v
retrieving revision 1.36
diff -u -r1.36 image_captcha.module
--- image_captcha.module	16 Nov 2010 22:58:26 -0000	1.36
+++ image_captcha.module	22 Nov 2010 21:51:50 -0000
@@ -218,9 +218,10 @@
         // client side caching: subsequent images of the same CAPTCHA session
         // have the same URL, but should display a different code).
         $img_src = check_url(url("image_captcha/$captcha_sid/" . REQUEST_TIME));
+		$image_size_array = image_captcha_image_size()
         $result['form']['captcha_image'] = array(
           '#type' => 'markup',
-          '#markup' => '<img src="' . $img_src . '" alt="' . t('Image CAPTCHA') . '" title="' . t('Image CAPTCHA') . '" />',
+          '#markup' => '<img src="' . $img_src . '" width="'. $image_size_array["width"] . '" height="' . $image_size_array["height"] . '" alt="' . t('Image CAPTCHA') . '" title="' . t('Image CAPTCHA') . '" />',
           '#weight' => -2,
         );
         $result['form']['captcha_response'] = array(
Index: image_captcha.user.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/captcha/image_captcha/image_captcha.user.inc,v
retrieving revision 1.27
diff -u -r1.27 image_captcha.user.inc
--- image_captcha.user.inc	19 Nov 2010 22:49:55 -0000	1.27
+++ image_captcha.user.inc	22 Nov 2010 21:51:45 -0000
@@ -65,9 +65,9 @@
 }
 
 /**
- * Base function for generating a image CAPTCHA.
+ * Base function for generating image height and width
  */
-function _image_captcha_generate_image($code) {
+function image_captcha_image_size() {
   // Get font.
   $fonts = _image_captcha_get_enabled_fonts();
 
@@ -76,8 +76,27 @@
   $character_spacing = (float) variable_get('image_captcha_character_spacing', '1.2');
   $characters = _image_captcha_utf8_split($code);
   $character_quantity = count($characters);
+  
+  // Calculate Values for Height and Width
   $width = $character_spacing * $font_size * $character_quantity;
   $height = 2 * $font_size;
+  $return_value = array("width" => $width, "height" => $height);
+  
+  return $return_value;
+  }
+  
+/**
+ * Base function for generating a image CAPTCHA.
+ */
+function _image_captcha_generate_image($code) {
+  // Get font.
+  $fonts = _image_captcha_get_enabled_fonts();
+
+  // get other settings
+  $font_size = (int) variable_get('image_captcha_font_size', 30);
+  $arr = image_captcha_image_size();
+  $width = $arr["width"];
+  $height = $arr["height"];
 
   // create image resource
   $image = imagecreatetruecolor($width, $height);

