Create local image files from a url


So I’m working on plugin using the WolframAlpha api however I’m running into an issue, It seems like Wolfram automatically deletes generated images after a few hours (Presumably to save space on their servers) this is fine except that at the moment I’m using image links which die after the image is gone.

So I’ve come to the conclusion that I should save the image to a folder in the vault and then create a linktag for that instead of an image tag.

Is there a way to save the file locally?