Add avatar support to chat panel for front end.