added image changing in stack