add setEnable function for camera