Retriving the image of a curtain from a video