move mimetype from dictionaries to metadata