|
|
@ -29,12 +29,11 @@ sub render($this, $container) |
|
|
|
my $href = $this->{source}; |
|
|
|
my $href = $this->{source}; |
|
|
|
if ($this->{fetch}) |
|
|
|
if ($this->{fetch}) |
|
|
|
{ |
|
|
|
{ |
|
|
|
$this->_fetch_base64 unless defined($this->{_cached_data}); |
|
|
|
$href = $this->{_cached_data} // $this->_fetch_base64; |
|
|
|
$href = $this->{_cached_data}; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
$image_element->{href} = $href; |
|
|
|
$image_element->{href} = $href; |
|
|
|
$image_element->{width} = $this->{width} if defined($this->{width}); |
|
|
|
$image_element->{width} = $this->{width}; |
|
|
|
$image_element->{height} = $this->{height} if defined($this->{height}); |
|
|
|
$image_element->{height} = $this->{height}; |
|
|
|
return $image_element; |
|
|
|
return $image_element; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|