More flexible previewTemplate (optional fields)

Let previewTemplate have zero or more
elements that represent data - filename, size, etc.
This will in effect make all fields optional.

Sorry I didn't open an issue for it first to discuss, but it was such a small change anyways. What do you think?