added mods to capture 250 images

mods added in area of threading. Problems were occurring where trigger
times were not occurring immediately after the request to mbed.