use .format to get content mimetype