title: Extension with image: How to get the full image path in the template?
body: <p>I have created a Typo3 extension using the Extension Builder. One of those fields is an image field. </p>
  
  <p>When rendering an entity in the frontend I have access to this field like:</p>
  
  <pre><code>{entity.image} &lt;!-- results in image.jpg without a path --&gt;
  </code></pre>
  
  <p>But it only retrieves the name of the file. Now I could create a folder, where all images regarding this extension should be uploaded like:</p>
  
  <pre><code>fileadmin/user_upload/entity
  </code></pre>
  
  <p>Now I can wire it in the template like:</p>
  
  <pre><code>&lt;img src=" fileadmin/user_upload/entity/{entity.image}" alt="{entity.name}"&gt;
  </code></pre>
  
  <p>This works fine <strong>until</strong> someone uses the image multiple time. In this case Typo3 will create an image and set <strong>image_01.jpg</strong>, <strong>image_02.jpg</strong> etc. in the backend. Of course those images don't exist in the newly created folder. It seems, that Typo3 creates a copy somewhere and uses the name from that copy.</p>
  
  <p>So my questions are:</p>
  
  <ul>
  <li>How can I get the real image path in my template? Maybe somewhere in the controller?</li>
  <li><strong>OR</strong> How can I stop Typo3 from creating those copies and increasing the number of each image?</li>
  <li><strong>OR</strong> Does the image viewHelper <code>&lt;f:image /&gt;</code> help here? If so, how?</li>
  </ul>
  
  <p>This is an extbase/fluid based extension.</p>