Added exportFigToPDF