Assembling PDF's from images