save images to tree dirs