Generate thumbnails easily and safely.