Allow setting margings for the scanner.