Adding Image in forms activity using Dynamic HTML Elements throwing exception "Uiath.OutOfProcessUi.Host.WCF" has stopped working

Found the solution for that in this forum post: Html Img Source only works with http location and not local folder