corrected error in the way scores per image was being computed