Added code to upload avatars for system users.