static function get_image_data($self, $isThumb = false)
 {
     $sizes = NewRoyalSliderMain::$image_sizes;
     $s;
     $image_data;
     if ($isThumb) {
         $s = 'thumbI';
     } else {
         $s = 'i';
     }
     if (!$isThumb && !$self->image_data || $isThumb && !$self->thumb_image_data) {
         if (isset($self->options['image_generation']) && isset($self->options['image_generation'][$s . 'mageWidth']) && isset($self->options['image_generation'][$s . 'mageHeight'])) {
             $img_width = (int) $self->options['image_generation'][$s . 'mageWidth'];
             $img_height = (int) $self->options['image_generation'][$s . 'mageHeight'];
             if ($img_width == 0 || $img_height == 0) {
                 $image_data = wp_get_attachment_image_src($self->attachment_id, !$isThumb ? $sizes['large'] : $sizes['thumbnail']);
             } else {
                 if (!$self->full_img_url) {
                     $self->full_img_url = wp_get_attachment_image_src($self->attachment_id, NewRoyalSliderMain::$image_sizes['full']);
                     if (is_array($self->full_img_url) > 0) {
                         $self->full_img_url = $self->full_img_url[0];
                     }
                 }
                 $image_data = NewRoyalSliderMain::aq_resize(wp_get_attachment_url($self->attachment_id), $img_width, $img_height, true, false);
             }
         } else {
             $image_data = wp_get_attachment_image_src($self->attachment_id, !$isThumb ? $sizes['large'] : $sizes['thumbnail']);
         }
         if ($isThumb) {
             $self->thumb_image_data = $image_data;
         } else {
             $self->image_data = $image_data;
         }
     }
     if (!$isThumb && $self->image_data) {
         return $self->image_data;
     }
     if ($isThumb && $self->thumb_image_data) {
         return $self->thumb_image_data;
     } else {
         return array(0 => '', 1 => '', 2 => '');
     }
 }