Added MIME type handling, linked to the appropriate icons