added options.preview for setting the previewElement