A sane thumbnail generation