use proper preview templates and sensibly names generated files