improve xy-yx flipping for skimage