Python Base64 Encode Image