Python script to align (deshake) timelapse images before further processing