##
html <-- $root
'-- body
+-- h2
+-- a <-- $new_parent ($img used to be here but not anymore)
+-- img
'-- img
img <-- $img
####
html <-- $root
'-- body
+-- h2
+-- a <-- $new_parent
| '-- img <-- $img
+-- img
'-- img