InlineMediaDownloader: Handle deleted thumbnails

If the thumbnail is not available, we have to unfortunately load the
complete media from disk, create the thumbnail, write that and then use
the it.