Height is not a good determinant in movement direction, normalized error is much better. Should fix aes1610 and aes2501 driver issues.
Frame assembling routines are not aes-specific, so move them into a separate file and add an accessor for peeking a pixel.