script for downloading images