function getBoundingBox(image) {
  try {
    return image.getBoundingBox(true);
  } catch {
    return [0, 0, image.getWidth(), image.getHeight()];
  }
}
Get the bounding box of an image.  If the image does not have an affine transform,
the pixel bounds are returned.
@param {GeoTIFFImage} image The image.
@return {Array<number>} The image bounding box.