removed last img tag and replaced with markdown