Adding a class to handle the Camera preview