Bash script to download all pics from a thread