Fix printed directory pdf generation with photos [fixes #85]