Added a function to set the gain of the camera manually.