let avatar upload class can resize picture