On the thickness periodicity of atomic-resolution images of dislocation cores