Added new method of downloading and decoding image; using two threads