/**
  * 
  * on show image ajax event. outputs image with parameters 
  */
 public static function onShowImage()
 {
     $pathImages = RevSliderFunctionsWP::getPathContent();
     $urlImages = RevSliderFunctionsWP::getUrlContent();
     try {
         $imageID = intval(RevSliderFunctions::getGetVar("img"));
         $img = wp_get_attachment_image_src($imageID, 'thumb');
         if (empty($img)) {
             exit;
         }
         self::outputImage($img[0]);
     } catch (Exception $e) {
         header("status: 500");
         echo $e->getMessage();
         exit;
     }
 }