How do i add a JPEG image to a new thread?