Hartmann–Shack sensor based micro-scanning image detection