rotate image, flip
permutation