public function render(AssetProxyInterface $assetProxy = null, $width = null, $height = null)
    {
        if ($width === null || $height === null) {
            $width = 250;
            $height = 250;
        }

        if ($width <= 250 && $height <= 250) {
            $thumbnailUri = $assetProxy->getThumbnailUri();
        } else {
            $thumbnailUri = $assetProxy->getPreviewUri();
        }

        $this->tag->addAttributes([
            'width' => $width,
            'height' => $height,
            'src' => $thumbnailUri
        ]);

        return $this->tag->render();
    }