Fix sprite path generation in Rails 4.

* get correct urls.