python base64 encode image file