Get anime image.

@param \simplehtmldom_1_5\simple_html_dom $each_anime

@return string
194797
private function getAnimeImage($each_anime)
    {
        $image = $each_anime->find('div[class=image]', 0)->find('img', 0)->getAttribute('data-src');

        return  Helper::imageUrlCleaner($image);
    }
207057
private function getGenre($each_anime)
    {
        $genre = [];
        $genre_area = $each_anime->find('div[class="genres js-genre"]', 0);
        foreach ($genre_area->find('a') as $each_genre) {
            $genre[] = $each_genre->plaintext;
        }

        return $genre;
    }
480714
protected function getFigcaption()
    {
        $figcaption = '';

        if ($this->hasAttribute('title')) {
            $figcaption = '<figcaption class="code-highlight-caption">';
            $figcaption .= '<span class="code-highlight-caption-title">';
            $figcaption .= $this->getAttribute('title');
            $figcaption .= '</span>';
            $figcaption .= $this->getFigcaptionLink();
            $figcaption .= '</figcaption>';
        }

        return $figcaption;
    }
537835
public function getImageTitleText()
    {
        switch ($this->ImageTitle) {
            case self::IMAGE_TITLE_MEDIA:
                return $this->MediaTitle;
            case self::IMAGE_TITLE_COMPONENT:
                return $this->Title;
        }
    }
435667
public function image($image, $width=null, $height=null, $alt=null, $class=null, $link=null, $caption=null, $srcset=null) {
		$image = $this->getLink($image);
		$attributes = $this->getHtmlAttributes(array(
			'width'=>$width,
			'height'=>$height,
			'alt'=>$alt,
			'caption'=>$caption,
			'class'=>$class,
			'srcset'=>$srcset
		));

		$img = "<img src='$image'$attributes />";
		if (!is_null($link)) {
			$link = $this->getLink($link);
			return "<a href='$link'>$img</a>";
		}

		return $img;
	}
770700
private function getAllInfo()
    {
        $data = [];
        $offset = 0;
        while (true) {
            $url = $this->_myAnimeListUrl.'/'.$this->_type.'list/'.$this->_user.'/load.json?offset='.$offset.'&status='.$this->_status;

            $content = json_decode(file_get_contents($url), true);

            if ($content) {
                $count = count($content);
                for ($i = 0; $i < $count; $i++) {
                    if (!empty($content[$i]['anime_image_path'])) {
                        $content[$i]['anime_image_path'] = Helper::imageUrlCleaner($content[$i]['anime_image_path']);
                    } else {
                        $content[$i]['manga_image_path'] = Helper::imageUrlCleaner($content[$i]['manga_image_path']);
                    }
                }

                $data = array_merge($data, $content);

                $offset += 300;
            } else {
                break;
            }
        }

        return $data;
    }
831855
public function Image()
    {
        if ($this->ActionImage()) {
            return $this->ActionImage();
        }
        if ($this->Type == 'SiteTree') {
            return $this->SiteTree()->ActionImage();
        }
    }
207104
private function getAnimeGenre($each_anime)
    {
        $genre = [];
        $genre_area = $each_anime->find('div[class="genres js-genre"]', 0);
        foreach ($genre_area->find('a') as $each_genre) {
            $genre[] = $each_genre->plaintext;
        }

        return $genre;
    }
665006
public function getImageAsString()
    {
        $data = null;
        ob_start();
        $this->show(true);
        $data = ob_get_contents();
        ob_end_clean();

        return $data;
    }
1034679
public function getIcon()
    {
        if (!$this->icon) {
            return "";
        }
        return Html::get()->image($this->icon, $this->translate($this->label));
    }
76472
public function AnimeMoreInfo(int $id): ?string
    {
        return $this->myanimelist->getAnimeMoreInfo(
            new Request\Anime\AnimeMoreInfoRequest($id)
        );
    }
191651
public function AnimePictures(int $id): array
    {
        return $this->myanimelist->getAnimePictures(
            new Request\Anime\AnimePicturesRequest($id)
        );
    }
194687
public function getAnimeStats(Request\Anime\AnimeStatsRequest $request): Model\Anime\AnimeStats
    {
        $crawler = $this->ghoutte->request('GET', $request->getPath());
        try {
            $parser = new Parser\Anime\AnimeStatsParser($crawler);

            return $parser->getModel();
        } catch (\Exception $e) {
            throw ParserException::fromRequest($request, $e);
        }
    }
895188
public static function fromParser(AnimeParser $parser): Anime
    {
        $instance = new self();
        $instance->trailerUrl = $parser->getPreview();
        $instance->title = $parser->getTitle();
        $instance->url = $parser->getURL();
        $instance->malId = $parser->getId();
        $instance->imageUrl = $parser->getImageURL();
        $instance->synopsis = $parser->getSynopsis();
        $instance->titleEnglish = $parser->getTitleEnglish();
        $instance->titleSynonyms = $parser->getTitleSynonyms();
        $instance->titleJapanese = $parser->getTitleJapanese();
        $instance->type = $parser->getType();
        $instance->episodes = $parser->getEpisodes();
        $instance->status = $parser->getStatus();
        $instance->airing = $instance->status === 'Currently Airing';
        $instance->aired = $parser->getAired();
        $instance->premiered = $parser->getPremiered();
        $instance->broadcast = $parser->getBroadcast();
        $instance->producers = $parser->getProducers();
        $instance->licensors = $parser->getLicensors();
        $instance->studios = $parser->getStudios();
        $instance->source = $parser->getSource();
        $instance->genres = $parser->getGenres();
        $instance->duration = $parser->getDuration();
        $instance->rating = $parser->getRating();
        $instance->score = $parser->getScore();
        $instance->scoredBy = $parser->getScoredBy();
        $instance->rank = $parser->getRank();
        $instance->popularity = $parser->getPopularity();
        $instance->members = $parser->getMembers();
        $instance->favorites = $parser->getFavorites();
        $instance->related = $parser->getRelated();
        $instance->openingThemes = $parser->getOpeningThemes();
        $instance->endingThemes = $parser->getEndingThemes();
        $instance->background = $parser->getBackground();

        return $instance;
    }
422851
public function getMainImage()
    {
        $imgUrl = false;

        if ($this->getImage() !== null) {
            $imgUrl = $this->getImage();
        }

        if (!$imgUrl) {
            foreach ($this->dom->getElementsByTagName('link') as $link) {
                /** @var \DOMElement $link */
                /*
                 * Check for the rel attribute, then check if the rel attribute is either img_src or image_src, and
                 * finally check for the existence of the href attribute, which should hold the image url.
                 */
                if ($link->hasAttribute('rel') && ($link->getAttribute('rel') === 'img_src' || $link->getAttribute('rel') === 'image_src') && $link->hasAttribute('href')) {
                    $imgUrl = $link->getAttribute('href');
                    break;
                }
            }
        }

        if (!empty($imgUrl) && $this->configuration->getFixRelativeURLs()) {
            $this->setImage($this->toAbsoluteURI($imgUrl));
        }
    }
836085
public function icon($ext = null, $attr = []) {
		if (empty($ext)) {
			return '';
		}
		if ($this->types === null) {
			$this->getTypes();
		}

		$default = ['ext' => $ext, 'name' => 'Datei'];

		foreach ($this->types as $t) {
			if ($t['ext'] == $ext) {
				if (!empty($t['img'])) {
					return $this->formatIcon($t, $attr);
				}

				if (!empty($t['name'])) {
					$default['name'] = $t['name'];
				}
				return $this->formatIcon($default, $attr);
			}
		}

		return $this->formatIcon($default, $attr);
	}
808263
public function getTagAttribute()
    {
        return ImageElement::img()
            ->isSelfClosing()
            ->src($this->getUrlAttribute() ?: false)
            ->alt($this->getAttribute('title') ?: false);
    }