generate alpha matte from image sequence