Transform URLs in cloudflare images via a subdomain of a zone

I have a zone called example.com in cloudflare, I want to transform images stored in my s3 bucket via something like images.example.com. What DNS records should I add and what settings should I enable to achieve this?

I have added vercel's IP address in the A record and vercel's CNAME record in the CF dashboard. example.com is a website deployed in vercel. These are the only 2 records added currently.

If I go to https://www.example.com/cdn-cgi/image/width=100/https://bucket.s3.ap-south-1.amazonaws.com/pic.jpg , I am getting a 404 page.
Was this page helpful?