Image API in node.js