Added image storing to example