PDFBOX-4080: allow to pass a ScratchFile to constructAppearances(); needs further changes within appearance handlers