Added pdf2png function