I have this array in PHP
$link = array(
'#type' => 'link',
'#title' => 'link1',
'#href' => 'http://www.link1.example',
'#suffix' => '<br />',
);
when i call the render() functions i get the correct html
<a href="http://www.link1.example">link1</a>
How i can change the above render array in order to include an image as a link?
In other words i want this as output from the render() function
<a href="http://www.link1.example"><img src='images/link1img.png' /></a>
I have tried to use the theme('image',$array) function but when the result of theme() is passed to the render() i don't see the image to my page but the actual html code.