Forked and enhanced version of alchemy/ghostscript script