diff --git a/wysiwyg_template.module b/wysiwyg_template.module
index ba393a8..7d523e7 100644
--- a/wysiwyg_template.module
+++ b/wysiwyg_template.module
@@ -160,12 +161,15 @@ function wysiwyg_template_list_js($editorName){
       print json_encode($outArray) . ";";
     break;
     case 'ckeditor':
-      print "CKEDITOR.addTemplates( 'default', { templates:";
+      // ELMS patch for images in elms core
+      print "CKEDITOR.addTemplates( 'default', { imagesPath : '". base_path() . drupal_get_path('module', 'elms_helper') ."/wysiwyg_templates/images/', templates:";
       //todo: include an image with templates...
       //imagesPath : CKEDITOR.getUrl( CKEDITOR.plugins.getPath( 'templates' ) + 'templates/images/' ),
       // load the templates into the json array structure
       foreach($templates as &$template){
 	$template['html'] = $template['body'];
+       // ELMS patch for images
+       $template['image'] = strtolower(str_replace(' ', '', $template['title'])) .'.png';
 	unset($template['body']);
 	unset($template['tid']);
       }
