Added code to handle multifile, multiframe TIFFs