Changed tonfig to support local thumbnails