Python Base64 Encode Image File