php class for creating a clone of a folder with multiple image directory's