return error of avatar resize fails