ImageSharp not resizing images stored outside umbraco media folder in Umbraco 13

We have some images stored on azure virtual directories mounted on azure storage (File shares).

We have observed that ImageSharp is not resizing images that are not stored on the umbraco media folder. The umbraco media folder is created on azure storage containner.

This image is resizing:

/media/10787/test_image_from_umbraco_media_folder.jpg?rmode=max&width=140&quality=90&upscale=false

This image is not resizing

/images_stored_outside_umbraco_media_folder/file/content/upload/test_700.jpg?rmode=max&width=140&quality=90&upscale=false

Please note, we have similar image storage set up in umbraco 8 which is working with ImageProcessor.

Is there any workaround to resolve this issue.

Thanks.
Kamal