Scanner-optimized identity document verification