This program will make gallery rely on directory