Thumbnails quality improved by adjusting the sample size