convert image file into base64 text