Base url and encoding fixes
Fix to use base64 string data for avatar image