StaticReferenceRewriteTransformerFactory not rewriting NamedImageTransformer urls
I have static reference rewriter configured to write all static assets like images, css, js to a static domain like https://static.mydomain.com. However, it doesn't rewrite the image src urls for images that use the acs commons NamedImageTransformerImpl. However, it works properly for all assets which don't have the ".transform" in the url (used by the NamedImageTransformerImpl). An example is below where it doesn't perform the rewrite.
<img src="/content/dam/abc/tenants/cbs/insights/image/D7_insight-banner_1440x810px_01.png.transform/article.img.400/img.png">
So, it leaves these image links alone. Any idea how to get it to rewrite to <img src="https://static.mydomain.com//content/dam/abc/tenants/cbs/insights/image/D7_insight-banner_1440x810px_01.png.transform/article.img.400/img.png>