Using edge storage and a CDN pull zone for images

I’ve read the guide ‘Kirby Loves CDN’. Does this recipe also work with all files hosted on a CDN edge storage? Images get uploaded to the edge storage by SFTP (1.5TB storage).

I created a pull zone which uses this edge storage and use it to get the images. But the images are resized with the Kirby ‘Thumb’ method. This method creates a media directory with the resized images in it, and this directory also needs to be on the storage server, of course. Can this be done, or should I try something else?