Used mimetype functions from mk_mimetype