Currently the exists function that fetches the filesytem takes most of the compute time in get_image_url:image.rs and most of the HTML generation time.

A simple and effective fix would be to do the same as with urls and store an HashSet of the image url
Another possible improvement is to use tokio tasks instead of threads.