Added format parameter to determine content-type of displayed MIME part in preview methods