Stabilization of dipole solitons in nonlocal nonlinear media