title: How do I output a drupal image field?
body: <p>It is quite possible that I'm just looking for help finding the name of a function that already exists within drupal (7) but sometimes the documentation is a bit difficult to navigate. Hopefully someone can help me.</p>
  
  <p>I have a node that has a custom field.</p>
  
  <p>I am working within a template <code>field--mycustomcontenttype.tpl.php</code> and so am trying to find the name of the PHP function that outputs and image field with image styles.</p>
  
  <p><code>mycustomcontenttype</code> is a NODE with the following additional field:</p>
  
  <pre><code>[field_image] =&gt; Array
  (
      [und] =&gt; Array
      (
          [0] =&gt; Array
          (
              [fid] =&gt; 51
              [alt] =&gt; ImageAltText
              [title] =&gt; 
              [width] =&gt; 150
              [height] =&gt; 150
              [uid] =&gt; 29
              [filename] =&gt; myimagename.jpg
              [uri] =&gt; public://myimagename.jpg
              [filemime] =&gt; image/jpeg
              [filesize] =&gt; 8812
              [status] =&gt; 1
              [timestamp] =&gt; 1339445372
              [uuid] =&gt; a088ea8f-ddf9-47d1-b013-19c8f8cada07
              [metatags] =&gt; Array
          (
      )
  )
  </code></pre>
  
  <p>So I <em>could</em> display the image using an (ugly)  hand rolled functions that takes the value found in <code>$item['#options']['entity']-&gt;field_image</code> and does the substitution of <code>public://</code> for the actual server path, and then it's also possible that I'm going to want to load the image with the correct drupal image style (thumbnail, custom-style, etc...)</p>
  
  <p>Sadly, I just have no idea what the name of the function that works something like: <code>unknown_function_name_drupal_image_print($item['#options']['entity']-&gt;field_image, 'thumnail');</code> is.</p>
  
  <p>Is there anyone who can help me find this?</p>