Added configurable filetypes for document and imagemagick