Passing buffers not strings to datauri