Imaging system with synchronized scan and sensing