Fix set_avatar in user.class