sub-pixel alignment

Now images are aligned with sub-pixel accuracy. This only works for
images separated by at least 1 pixel (roughly).
small displacement fix

Displacements smaller than 2 pixels are re-aligned to the last image,
which is assumed to be farther away due to drift.