inversion of the image