writing mime to metadata class