generated images are stored in respective directories now