Pinhole rein-vert inverted image

Hi, I’m designing a pin hole camera, can I correct the inverted image? Is it by the use of penta mirrors or is that another other method without the use of digital?