The overlooked role of optics in automated inspection