Index: image.module =================================================================== --- image.module (revision 123) +++ image.module (revision 124) @@ -362,7 +362,8 @@ $info = image_get_info(file_create_path($node->images[$label])); $attributes['class'] = "image $label". (isset($attributes['class']) ? " ".$attributes['class'] : ""); $attr = array('width' => $info['width'], 'height' => $info['height']) + $attributes; - $output.= theme('image', file_create_url($node->images[$label]), $node->title, $node->title, $attr, FALSE); + $path = file_create_url($node->images[$label]); + $output.= theme('inline_image', $node, $path, $attr); return $output; } @@ -498,6 +499,16 @@ } /** + * Theme an image + */ +function theme_inline_image($node, $path, $attributes) { + + $alt = $node->title; + $title = $node->title; + + return theme('image', $path, $alt, $title, $attributes, FALSE); +} +/** * Theme a teaser */ function theme_image_teaser($node) {