Implemented Horiz/Vert flip on button click.