How to configure avatar and set its correct path?