--- wysiwyg_imageupload.ajax.inc.p1	2010-01-25 01:43:52.000000000 +0300
+++ wysiwyg_imageupload.ajax.inc	2010-01-25 01:58:42.000000000 +0300
@@ -66,11 +66,11 @@
  * Using the cacheID to determine the filepath and returns a html image object
  * If imagecache is installed, use the preset
  */
-function _wysiwyg_imageupload_show_image($cacheID,$preset) {
+function _wysiwyg_imageupload_show_image($cacheID, $preset, $title) {
    if (module_exists('imagecache')) {
     $filepath = cache_get($cacheID,'cache');
     $GLOBALS['devel_shutdown'] = FALSE;
-    print theme('imagecache',$preset,$filepath->data, $filepath->data);
+    print theme('imagecache', $preset, $filepath->data, $filepath->data, $title);
     exit;
    }
 }
--- wysiwyg_imageupload.module.p1	2010-01-25 01:45:15.000000000 +0300
+++ wysiwyg_imageupload.module	2010-01-25 01:56:33.000000000 +0300
@@ -31,9 +31,9 @@
   	'type' => MENU_CALLBACK,
   );
 
-  $items['ajax/wysiwyg_imgupl/showimage/%/%'] = array(
+  $items['ajax/wysiwyg_imgupl/showimage/%/%/%'] = array(
     'page callback' => '_wysiwyg_imageupload_show_image',
-    'page arguments' => array(3,4),
+    'page arguments' => array(3,4,5),
     'access callback' => 'user_access',
     'access arguments' => array('use wysiwyg image upload'),
     'type' => MENU_CALLBACK,
--- plugins/imgupload/imgupload.js.p0	2010-01-25 01:11:12.000000000 +0300
+++ plugins/imgupload/imgupload.js	2010-01-25 02:00:52.000000000 +0300
@@ -134,7 +134,7 @@
    * Fetches the imagecache preset representitive and insert it all th way down into the current editor
    */
   createImageInContent: function(args) {		
-    var aurl = Drupal.settings.basePath+'index.php?q=ajax/wysiwyg_imgupl/showimage/'+args['cacheID']+'/'+encodeURI(args['preset']);
+    var aurl = Drupal.settings.basePath + 'index.php?q=ajax/wysiwyg_imgupl/showimage/' + args['cacheID'] + '/' + encodeURI(args['preset']) + '/' +encodeURI(args.title);
     $.get(aurl,null,function(data,status) {
       // Use some jquery foo to set the title and align
       img = $(data)
