change '/assets/' to <%= asset_path(".png")%>

See the commented TODO item. Thoughts on how to handle this?