Fixes regression introduced by image support in HTML statement generation.