Taking picture on UDP packet received