added possibility to get state of the camera