patched code to use getContentType()
Merge pull request #21 from peergum/master

patched code to use getContentType()