avatar base64 conversion