```ruby
module Spree
  module NavigationHelper
    def categories_data
      [
        {
          name: :women,
          url: nested_taxons_path('women'),
          subcategories: [
            { dresses: nested_taxons_path('women/dresses') },
            { shirts_and_blouses: nested_taxons_path('women/shirts-and-blouses') },
            { t_shirts_and_tops: nested_taxons_path('women/tops-and-t-shirts') },
            { sweaters: nested_taxons_path('women/sweaters') },
            { skirts: nested_taxons_path('women/skirts') },
            { jackets_and_coats: nested_taxons_path('women/jackets-and-coats') }
          ]
        },
        {
          name: :men,
          url: nested_taxons_path('men'),
          subcategories: [
            { shirts: nested_taxons_path('men/shirts') },
            { t_shirts: nested_taxons_path('men/t-shirts') },
            { sweaters: nested_taxons_path('men/sweaters') },
            { jackets_and_coats: nested_taxons_path('men/jackets-and-coats') }
          ]
        },
        {
          name: :sportswear,
          url: nested_taxons_path('sportswear'),
          subcategories: [
            { tops: nested_taxons_path('sportswear/tops') },
            { pants: nested_taxons_path('sportswear/pants') },
            { sweatshirts: nested_taxons_path('sportswear/sweatshirts') }
          ]
        }
      ]

    def main_nav_image(category, type)
      image_path = "homepage/#{type}_#{category}.jpg"
      image_url = asset_path(asset_exists?(image_path) ? image_path : 'noimage/plp.png')

      lazy_image(
        src: image_url,
        alt: category,
        width: 350,
        height: 234
      )
    end
  end
end
```

Replace hardcoded categories with data fetches from spree_storefront.yaml file
user
```ruby
module Spree
  module NavigationHelper
    def spree_navigation_data
      SpreeStorefrontConfig[:navigation] || []
    # safeguard for older Spree installs that don't have spree_navigation initializer
    # or spree.yml file present
    rescue
      []
    end

    def main_nav_image(category, type)
      image_path = "homepage/#{type}_#{category}.jpg"
      image_url = asset_path(asset_exists?(image_path) ? image_path : 'noimage/plp.png')

      lazy_image(
        src: image_url,
        alt: category,
        width: 350,
        height: 234
      )
    end
  end
end
```
assistant