Achieve full decoupling of Scanner object and graphical environment