I'm new to Symfony and I'm trying to include and image (stored in the bundle Resources/public/images dir) in a twig template. When I render the page however the img tag has a non existent src path. I'm not sure what is going on, any advice would be appreciated greatly.
My Twig File
{% image '@XYZTestBundle/Resources/public/images/bananas.jpg' %}
<img src="{{ asset_url }}" alt="Symfony!" />
{% endimage %}
The rendered image tag
<img src="/myproject/web/images/5fcddd8.jpg" alt="Symfony!">
There are no files in the /myproject/web/images/ directory