I have a photoblog set up like this. It’s actually a static site served entirely via S3 buckets but that part isn’t really relevant.
Basically I have my images in an S3 bucket named
img.domain.com with CloudFront set up with that bucket as its origin. In the CloudFront distribution settings I added the CNAME
img.domain.com. Once the CloudFront distribution is live it will have a domain name like
somestring.cloudfront.net, which you can then add to the Cloudflare DNS tab as a CNAME record
This is how I have it set up - not sure if it’s the best approach.
Are you asking about Polish specifically? Because that I’m not sure about…
From the Polish announcement blogpost:
When an image is fetched from your origin our systems automatically optimize it in our cache.
Leads me to believe that it will work regardless of where your images are coming from, but someone else will have to verify that