Combined motion and edge analysis for a layer-based representation of image sequences