added ghostscript support