Calling invert turns the image backwards right to left, i.e. it exchanges the first column for the last column, the second column for the second to last column, and so on until