public async void DownloadImage(string photoUrl) { try { var photo = await ServerRequests.GetAthletePhoto(photoUrl); GetComponent <Image>().sprite = Sprite.Create(photo, new Rect(0, 0, photo.width, photo.height), Vector3.up / 2f); } catch (Exception e) { Debug.Log(e); } }