use Koha::DateUtils;
use Koha::Database;
use Koha::Patron::Messages;
+use Koha::Patron::Images;
use Date::Calc qw(
Today
relatives_borrowernumbers => \@relatives,
);
-my ($picture, $dberror) = GetPatronImage($borrower->{'borrowernumber'});
-$template->param( picture => 1 ) if $picture;
+my $patron_image = Koha::Patron::Images->find($borrower->{borrowernumber});
+$template->param( picture => 1 ) if $patron_image;
# get authorised values with type of BOR_NOTES