Update generic_camera.groovy

Fixed a few minor bugs