Added proper disposing of the PhotoCamera object

This helps to avoid leaving the camera in an used state.

My app had a workflow of scanning a barcode and later taking a picture using a CameraCaptureTask. The camera was not working in the CameraCaptureTask because it was still used by the qrcode scanner. this change fixed it.