[Olena-patches] milena r1169: Update memory managment for run_images