base64 encode image to support display image