Let's revisit the architecture of the internet. It starts with your ISP. Your ISP provides not only access, but also a bucket of storage (think similar to an S3 bucket).
The web applications store your media (your images and such) on storage that you pay for as part if your service.
It is then up to the user agent (browser) to tie the media into the webpage.