I added the aforementioned --create-dirs and removal of pictures to the script for ease of copy/paste.