correctly set the camera resolution