Added exportFigToPDF method