Recalling picture

Permalink
Hi all! My question is, I guess, fairly simple but unfortunately i'm not able to solve it.
So let's say I am using the following function in my controller.php to add a picture in a certain block

function getPicture() {
      if ($this->fIDpicture > 0) {
         return File::getByID($this->fIDpicture);
      }
      return null;
   }


Then in my view.php I would put the following piece in order for the image to show.

<?php
$picture = $this->controller->getPicture();
if ($picture) {
   echo $html->image($picture->getURL(),500,340);
}
?>


Now here's the question; How am I able to show this picture, that was created in let's say for instance Block A, again but then in Block B.
I don't want to add the picture again in Block B but print a thumbnail of the picture that was added in Block A.

GreyhorseDesign