Avatar refactoring
Fix for avatar
Merge branch 'user' of https://github.com/pi-engine/pi into user