edit image tag from html to erb format