Use a thread to handle image transfer.