extracting relative motion information from a plurality of images taken successively