Images are now flipped using axis permutation