Made __queryCamera() generic wrt credentials.