cleanup simplify filestype filtering, adds qs type=

?type=document
?type=image