Moved image retrieval to own thread.