changing figures to pdfs