417,418d416
< 	$img_template = str_replace("'","\'", $img_template);
< 	
815,827c813
<     $img_template = t($img_template, 
<     	array(
<     		'%caption' => $vars['caption'], 
<     		'%node-link' => url("node/$image->nid"), 
<     		'%img-link' => $image->filepath, 
<     		'%alt' => check_plain($vars['alt']), 
<     		'%width' => $width, 
<     		'%height' => $height, 
<     		'%src' => $src, 
<     		'%image-class' => $class, 
<     		'%orig_src' => file_create_url($image->filepath), 
<     		'%orig_height' => $image->height, 
<     		'%orig_width' => $image->width));
---
>     $img_template = t($img_template, array('%caption' => $vars['caption'], '%node-link' => url("node/$image->nid"), '%img-link' => $image->filepath, '%alt' => check_plain($vars['alt']), '%width' => $width, '%height' => $height, '%src' => $src, '%image-class' => $class));
