Add support for generic documents, ie: non-images