fixed display of images in pdfs with wrong (bigger) length objects