Fixed the image stuff and a couple other things.  This required adding
the threading to the api.