use proper mime module
Merge pull request #19 from craigspaeth/master

use proper mime module