added test for stacked image