'Are you perhaps confusing the meaning of "invert" with "rotate"?' Yes I did :( Although, some consider inverting an image flipping it horizontally or vertically (as well as the colour) hence my confusion. You can see this when you Google 'invert image'.