Opening and Closing of the Image