some minor modifications to mpdf/mpdf.php