First working version of downloading images.