save avatar
change user to $rootscope.rootuser.