<?php
/*adding sections for footer background image*/
$wp_customize->add_section( 'fitness-hub-footer-bg-img', array(
    'priority'       => 10,
    'capability'     => 'edit_theme_options',
    'theme_supports' => '',
    'title'          => esc_html__( 'Footer Background Image', 'fitness-hub' ),
    'panel'          => 'fitness-hub-footer-panel',
) );

/*footer background image*/
$wp_customize->add_setting( 'fitness_hub_theme_options[fitness-hub-footer-bg-img]', array(
    'capability'		=> 'edit_theme_options',
    'default'			=> $defaults['fitness-hub-footer-bg-img'],
    'sanitize_callback' => 'esc_url_raw'
) );
$wp_customize->add_control(
    new WP_Customize_Image_Control(
        $wp_customize,
        'fitness_hub_theme_options[fitness-hub-footer-bg-img]',
        array(
            'label'		=> esc_html__( 'Footer Background Image', 'fitness-hub' ),
            'section'   => 'fitness-hub-footer-bg-img',
            'settings'  => 'fitness_hub_theme_options[fitness-hub-footer-bg-img]',
            'type'	  	=> 'image'
        )
    )
);