fix images in PDF

fixes a "bug" where images weren’t on the pages they were expected