@Override
  public String writeBitmap(String name, int tilei, int tilej, Bitmap bitmap) throws IOException {
    String tileName = generateTileName(name, tilei, tilej);
    String filename = getScreenshotFilenameInternal(tileName);
    ByteArrayOutputStream os = new ByteArrayOutputStream();
    bitmap.compress(Bitmap.CompressFormat.PNG, COMPRESSION_QUALITY, os);
    mReportArtifactsManager.recordFile(filename, os.toByteArray());
    return tileName;
  }
Returns the file in which the screenshot is stored, or null if this is not a valid screenshot

<p>TODO: Adjust tests to no longer use this method. It's quite sketchy and inefficient.
core/src/main/java/com/facebook/testing/screenshot/internal/AlbumImpl.java