Has anyone integrated Cloudflare Images into a MODX site?

If so, how did you go about it? CF Images seems like a great way to easily deliver optimized and appropriately-sized images but I’m not sure how to integrate it with the manager. It’s not object storage like R2 so the API isn’t S3-compatible, meaning the existing S3 media source won’t work with it. So what’s the best approach? A MODX plugin? A plugin for an RTE extra like Redactor? A custom media source? Something else?

Would love to hear anyone’s thoughts on this.