Bugfix: Fixing issues with the patron card pdf rendering code