update code, can download images and sub-folders