Changed file.previewTemplate to file.previewElement.

Kept file.previewTemplate for backwards compatibility.