improved thumbnail-generation
improved thumbnail-generation II