Fixed bug where multi-page TIFFs could cause distorted image transformations