Thumbnails generation revised