Fixed issue with mime type (fixes #11)