fix directions of axes for optflow