Finished implementing flip_y.