Changed img tag inserting to match Wayne's changes