implemented avatar feature