generate previews
fix preview header
fix for preview blob problems