Modify code for ImageGetter Thread