change mimetype to content_type

keyword mimetype has been deprecated