restore changes that implement pulling image from the repository