Added method to determine optimal size

Earlier, the setParameters method for the camera was giving an exception. I added a method to determine the optimal size for the camera to the CameraPreviewSurfaceView class.