Added a special module for downloading test images.
Added test for downloading preview with bad url.
Refactoring test_download_preview file.