/**
   * Deletes a photo from S3 based on the paths stored in the Photo object. This will delete both
   * the original photo and the resized versions that were created during the storage process.
   *
   * @param photo the photo to be deleted
   */
  public static void deletePhotoFromS3(Photo photo) {

    if (photo.getOriginalPath() != null) {
      deleteFromPath(photo.getId() + FULLSIZE_SUFFIX);
    }
    if (photo.getThumbnailPath() != null) {
      deleteFromPath(photo.getId() + THUMB_SUFFIX);
    }
    if (photo.getWebsizePath() != null) {
      deleteFromPath(photo.getId() + WEBSIZE_SUFFIX);
    }
  }