How flatbed scanners work.