Fixed image conversion into a thread.