Migrate image tags and links to rails syntax