Thanks for the draft PR @chandan.gupta but we strip images from excerpts for a reason
and we also don’t like to add extra site settings unless there’s a lot of demand for them. If you really need this on your site, then I suggest creating a plugin for it.