CapturePhoto now encapsulated in class