Added proper disposing of the PhotoCamera object

This helps to avoid leaving the camera in an used state.