--- imceimage/imceimage.module.old	2008-06-26 01:22:36.000000000 +0200
+++ imceimage/imceimage.module	2008-06-26 01:26:43.000000000 +0200
@@ -198,6 +198,7 @@ function imceimage_widget(&$form, &$form
  * theme an image
  */
 function theme_imceimage_image($s, $w='', $h='', $a='', $id='') {
+  if(empty($s)) return '';
   $s = 'src="'. $s .'" ';
   $a = 'alt="'. $a .'" ';
   $id = !empty($id)? 'id="'. $id .'" ':'';
@@ -212,6 +213,7 @@ function theme_imceimage_image($s, $w=''
  **/
 function theme_imceimage_formatter_link($element) {
   $item = $element['#item'];
+  if(empty($item['imceimage_path'])) return '';
   return '<a href="'. base_path() . $item['imceimage_path'] .'" class="imceimage-link">';
 }
 
