Porting to component architecture of "Avatar" plugin