Set content type
Is this how you send an image as a response?
Perhaps like this?
Like this?
Add the svg namespace
Create a jade version of the svg

Might be easier to manipulate