Use Sprockets::Helpers::RailsHelper conditionally on asset pipeline

Use Sprockets conditionally on asset pipeline so that helpers like image_path and image_url will point to /assets instead of /images.