Add imageId to slave and terminate node on imageId update via retention strategy