According to @oncletom, it should use the existing img element if there is one in the container. Can you confirm it? It would solve the issue and we can add a alt attribute because it would be kept on image replacement.