Back camera flips horizontally when restart button is pressed

Here is some code to illustrate the problem.

function draw()
    sprite(CAMERA, WIDTH/2, HEIGHT/2)

When the project is started the image of the back camera is normal, but when the restart button is pressed the back camera image then flips horizontally. This problem does not happen when the front camera is used, since the image is always reversed (mirror image).

I think Simeon added code to flip the camera image from being reversed, maybe it isn’t resetting to this? I was messing about with the camera yesterday and I found it easier to load a new camera function every time