function get_url_preview($escape = true, $suffix = 'photo.jpg')
{
$scheme = $this->get_s3_url_scheme();
$bucket = $this->get_setting('bucket');
$path = $this->maybe_update_cloudfront_path($this->get_file_prefix());
$region = $this->get_setting('region');
if (is_wp_error($region)) {
$region = '';
}
$domain = $this->get_s3_url_domain($bucket, $region, null, array(), true);
$url = $scheme . '://' . $domain . '/' . $path . $suffix;
// Replace hyphens with non breaking hyphens for formatting
if ($escape) {
$url = str_replace('-', '‑', $url);
}
return $url;
}