Tests for multipage tiffs
Don't close fd for multipage files
Allocate a new core image object for each frame, fixes problems with reusing palettes and image sizes
added ifd offset to the tiff decoder args, call TIFFSetSubDirectory