Implemented flip, flop, crop and shift in pure python.