How does entity_metadata_wrapper work with array? This is my code to return value of fields in a content type called library

$wrapper = entity_metadata_wrapper('node',$variables['node']);
$variables['name']= $wrapper-&gt;field_library_book_name-&gt;value();
$variables['writer']= $wrapper-&gt;field_library_book_writer-&gt;value();     
$variables['detail']= $wrapper-&gt;field_library_book_detail-&gt;value();
$variables['photo']= $wrapper-&gt;field_library_photo-&gt;value();


it works right for name, writer and detail but for image it only prints Array(). this is the var_dump() output of this array:

array(13) {
  ["fid"] =&gt; string(3) "382"
  ["alt"]=&gt; string(0) ""
  ["title"]=&gt; string(0) ""
  ["width"]=&gt; string(3) "145"
  ["height"]=&gt; string(3) "194"
  ["uid"]=&gt; string(2) "23"
  ["filename"]=&gt; string(15) "n_471_1_img.png"
  ["uri"]=&gt; string(43) "public://library_book_photo/n_471_1_img.png"
  ["filemime"]=&gt; string(9) "image/png"
  ["filesize"]=&gt; string(5) "40854"
  ["status"]=&gt; string(1) "1"
  ["timestamp"]=&gt; string(10) "1389166558"
  ["rdf_mapping"]=&gt; array(0) { }
} 


this is my question: how to output the image itself ?
The function theme_image will output the value as an img-tag. Is that what you are looking for?

$photo_field = $wrapper-&gt;field_library_photo-&gt;value();
$image = theme('image_style',
  array(
    'style_name' =&gt; 'large',
    'path' =&gt; $photo_field['uri'],
  )
);