Only use mimetype_list and clean up a bit