changes nse gallery images to rails asset path