Replace img tags to markdown images in content