Engineering Energy Efficient Visual Sensor Network Applications Using Skeletons