update failures dir logic and image names