Here is the repository I used to store the images used on web. No code. Nothing interesting.
You can also build such a repository and use some tools to make image upload easily. Then reference the image CDN url anywhere.
I upload images mainly through the plugin of utools.
Tips: use https://cdn.jsdelivr.net/gh/:user-name/:repo-name/:img-path can load images faster in China.