added getCameraInstance and openFrontFacingCamera methods