protected function drawImageInput($setting)
    {
        $class = UniteFunctionsBanner::getVal($setting, "class");
        if (!empty($class)) {
            $class = "class='{$class}'";
        }
        $settingsID = $setting["id"];
        $buttonID = $settingsID . "_button";
        $spanPreviewID = $buttonID . "_preview";
        $img = "";
        $value = UniteFunctionsBanner::getVal($setting, "value");
        if (!empty($value)) {
            $urlImage = $value;
            $imagePath = UniteFunctionsWPBanner::getImageRealPathFromUrl($urlImage);
            if (file_exists($realPath)) {
                $filepath = UniteFunctionsWPBanner::getImagePathFromURL($urlImage);
                $urlImage = UniteBaseClassBanner::getImageUrl($filepath, 100, 70, true);
            }
            $img = "<img width='100' height='70' src='{$urlImage}'></img>";
        }
        ?>
				<span id='<?php 
        echo $spanPreviewID;
        ?>
' class='setting-image-preview'><?php 
        echo $img;
        ?>
</span>
				
				<input type="hidden" id="<?php 
        echo $setting["id"];
        ?>
" name="<?php 
        echo $setting["name"];
        ?>
" value="<?php 
        echo $setting["value"];
        ?>
" />
				
				<input type="button" id="<?php 
        echo $buttonID;
        ?>
" class='button-image-select button-primary btn-blue <?php 
        echo $class;
        ?>
' value="Choose Image"></input>
			<?php 
    }
 public function getParamsForExport()
 {
     $arrParams = $this->getParams();
     $urlImage = UniteFunctionsBanner::getVal($arrParams, "image");
     if (!empty($urlImage)) {
         $arrParams["image"] = UniteFunctionsWPBanner::getImagePathFromURL($urlImage);
     }
     return $arrParams;
 }