working base64 output from input image