[PATCH configure 1/3] define and create mock_dir for imagefactory