reorganize img and photo storage and build process