use svg to generate filetype icon if imagick available

please review @DeepDiver1975 @jancborchardt