Stability properties of zigzag and image-zigzag persistent homology