Image2Base64 for the browser