Using ContentType DOCUMENT for binary content

Use mimeTypeId to figure out if content is image or text.