Fix 64-bit multipage tiff writing segfault
Merge pull request #507 from zachrahan/freeimage-multipage-64

Fix 64-bit multipage tiff writing segfault