Implemented a timestamped directory structure for storing images.