Implemented a thumbnailer that generates thumbnails in the output directory.