Creating Base64 Encoded String from an Image in Node.js