title: render image inside ejs template in nodejs express
body: <p>I'm trying to render an image inside an ejs template.
  I;m doing this:</p>
  
  <pre><code>var pic = "./public/images/"+collection_id+"/"+photo_id+".png";
  var comments = "bla bla bla";
  res.render('index', { title: 'Viewer' , pic: pic , comments: comments } );
  </code></pre>
  
  <p>and inside my .ejs</p>
  
  <pre><code>&lt;img src='&lt;%= pic %&gt;' /&gt;
  </code></pre>
  
  <p>I found out however that the true request is </p>
  
  <pre><code>GET /collection/1/photo/public/images/1/1.png 404 1ms
  </code></pre>
  
  <p>where /collection/1/photo/1 is the URL that I'm trying to route</p>
  
  <p>what can I do in order to render the image inside the template?</p>