The site setting Generate picture tag is on. Every image rendered through getHtml(), and every image in rich text, becomes a <picture> with a WebP source, an original-format source and an <img> fallback, plus 2x versions when the image was resized and the original is large enough. Your attributes are on the inner <img>. Inside a hand-written picture element use getPath(), not getHtml().