resize of avatar when uploaded