thumbnail_dir defined twice
More logging.