/**
   * Saves the contact photo - if present - to a file in private storage and makes sure the object
   * can provide a URI for it.
   */
  public void preparePhotoUri(Context context) {
    if (photo == null) return;

    Bitmap bitmapOriginal = BitmapFactory.decodeByteArray(photo, 0, photo.length);
    if (bitmapOriginal == null) return;

    photoUri = AddressBookProvider.storeBitmap(context, bitmapOriginal);
  }