WebCameraTexture issues

I have this code for the camera:

cam = new WebCamTexture ();
camImage.texture = cam;
camImage.material.mainTexture = cam;
cam.Play ();
camImage.transform.localScale = new Vector3(1,1,1);

camImage is a rawImage

It has alot of issues, one of which is that the camera is flipped, so everything is like a mirror instead of a camera. How would I fix this issue?