I am given a wire with charge density $\lambda$ that is parallel to the $z$ axis and intersects the $xy$ plane at $(d,0,0)$. Space is filled with two different dielectric materials such that in the region $x>0$ the dielectric constant is $\epsilon_1$ and in the region $x<0$ the dielectric constant is $\epsilon_2$. I am given a hint to use the method of images in order to find the electric field in all of space.
I am used to problems involving conductors where the boundary condition is $\phi_S=\phi_0$. Now I guess that the boundary conditions for this problem are $E_1^\parallel=E_2^\parallel$ and $D_1^\perp=D_2^\perp$. My problem with this is that if I place an image wire parallel to the $z$ axis that intersects the $xy$ plane at $(-d,0,0)$, the resulting field will be valid only for the region $x>0$, which would not allow me to produce the required boundary conditions. So how can I use these boundary conditions in order to find a suitable image wire for this problem?