Added updateImage() to a new thread.