SurfaceView 'take picture' has different aspect ratio than the camera preview?

So I was trying to use the SurfaceView component. I noticed I have to show it in full-screen so that it’s not distorted.

When I use the function ‘Take Picture’ it is in a completely different aspect ratio (4:3?)

Is there a way to have the same for SurfaceView preview and the taken picture?