loading photos by directory