Optical device used to invert an image