Dynamic Time Slot Assignment Scheme for Picture Transfer in Wireless Sensor Networks