Misunderstood nature of the problem. It was caused by subdirectory depth.
Old code produced broken div + wrong src: <div><img src="../<div><img src="../Images/X/Y.jpg" alt="Y.jpg" class="singlePage"/></div>