further pdftopng improvement