Use mimetype instead of the title again

It will simplify the implementation afterwards...