Auto-rotate avatars, fix avatar deletion