title: express.js / serve generated image
body: <p>I am using express and I would like to serve a generated image. The html source is something like <code>&lt;img src="/generated/image"&gt;</code> and the route setup so when a <code>GET</code> to <code>/generated/image</code> is called, a PNG gets created (and put, for example, in the public directory, but I guess this is not strictly necessary). Now I'd like to send back that image to the user. Should I use <code>res.send()</code> for that purpose? How can I get the data to the user?</p>