Add panic handler in downloadAvatarImage