This occurs when links to images are page-relative, not the required server-relative or absolute. Server relative is preferred (to avoid HTTP/HTTPS issues inherent with absolute linking).
It is the browser that resolves image location. Relative locations are relative to the folder level of the currently viewed HTML page. Server relative links with a leading slash are best.



