[Olena-patches] 3739: Cleanup accu::image and add take_n_times.