added headless mode (no window) for automated tape tests using 'autotest'