[#32] fixed adding avatar to user's profile

closes #52