Not saving intermediate images