I have created a Typo3 extension using the Extension Builder. One of those fields is an image field. 

When rendering an entity in the frontend I have access to this field like:

```
{entity.image} <!-- results in image.jpg without a path -->

```

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:

```
fileadmin/user_upload/entity

```

Now I can wire it in the template like:

```
<img src=" fileadmin/user_upload/entity/{entity.image}" alt="{entity.name}">

```

This works fine **until** someone uses the image multiple time. In this case Typo3 will create an image and set **image\_01.jpg**, **image\_02.jpg** 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.

So my questions are:

* How can I get the real image path in my template? Maybe somewhere in the controller?
* **OR** How can I stop Typo3 from creating those copies and increasing the number of each image?
* **OR** Does the image viewHelper `<f:image />` help here? If so, how?

This is an extbase/fluid based extension.