html writer - fixed image-in-image issue. All tests pass.