MIME identification and size fix