Fixed image upload mechanism in utils.
fixed local message loop; local now sleesp 30 secs instead of 10