I just finished moving the template system of the program from a global template to proper template files containing the necessary information for creating the pages. I also fixed some bugs which took all of the whitespace inside the images exported by KiCad when rendering the pages. Now the pages look perfectly clean.