Optimizing Deployment Cost in Camera-Based Wireless Sensor Networks