Changed img cid replacement to change the whole img tag instead of just src