Extract some methods and relase the camera
Attach and Detach the preview of The camera as own methods
Relase the camera and setting the camera to null