flatten images into one directory