Close image after open()