Adding ability to flip horz and vert