use mime type guesser
Merge pull request #144 from Kunstmaan/fix-mime-type-guesser

use mime type guesser