Doesn't unnecessarily overwrite existing thumbnails

By checking whether there's an existing thumbnail for each file
that is more recent than the file itself, we can keep old, useful
ones.