make ip addr detection valid html5

the img tags we had were not valid due to (at first) missing src attribute (that was dynamically added by js later).
new method now inserts the complete img tag, so no invalid tag is present at first and what is inserted later is a valid tag.