save intermediate images to disk