Motion analysis for image sequence coding