you can not duplicate layoutelements on runtime. Well, infact you can as it's html, but it'll be not regulary part of a hype export. may result in unexpected behaviour.
so two possibilities:
1) Replace the new images with old ones -> Marks approach -> easy to handle