Rewrite all image URLs for optimized delivery from services that support dynamic resizing. Use the image_pilot__image_url
filter to specify the updated image URL for the specific sizes:
add_filter(
'image_pilot__image_url',
function ( $url ) {
return $url; // i.e. update the hostname.
}
);