Script for storing entire image directory