Use mimetype in thumbnail