use C4::Branch;
use C4::Accounts;
use Koha::DateUtils;
+use Koha::Patron::Images;
my $input=new CGI;
$template->param( adultborrower => 1 ) if ( $data->{'category_type'} eq 'A' );
-my ($picture, $dberror) = GetPatronImage($data->{'borrowernumber'});
-$template->param( picture => 1 ) if $picture;
+my $patron_image = Koha::Patron::Images->find($data->{borrowernumber});
+$template->param( picture => 1 ) if $patron_image;
$template->param(
finesview => 1,