fixed img tag not closing issue