retrying for image building