Timeout setting

Added a timeout setting to use with urllib2 when retrieving an image with a URL. Without the timeout setting, urllib2 will wait indefinitely for a response.