Fixed PDF images with whitespace (#798)