Checking if source and destiny directories exist before generating
gallery