replaces html img tags with rails image tags on hp