refucktoring avatar upload