added image stacking.