Image as Plane and Stroke Object - transparency issue
You dont need to fix curve appearance, problem lies in imported Image as Plane that is by default set with Alpha Blend type.

Select Image object
go to Material Properties &gt; Settings panel
change Blend Mode &gt; Alpha Clip