Changed message type to mime