Added a method for handling an image sequence