transpose spatial dimensions of tifs and other image files