Worked PDFToImg to work with MVC runGUI instead of SwingGUI class