Added support for displaying images.
Now a question. I currently hotlink everything, including profile pictures. Downloading all media and keeping it eternally like Mastodon does seems to me like a terrible idea. But then hotlinking is also not ideal – Mastodon has images in different sizes internally while only serving the biggest ones through AP.
I'm thinking about something in-between. A LRU cache with admin-configurable size maybe?
And then I'd also like to serve images in WebP whenever possible (read: to browsers that aren't Safari) to reduce data usage, but again, hotlinking makes this impossible.