time until close added into the popup and image variable deleted