Changing generate-graphics to output PDF, removing postscript output