fixes some pbm printing issues