able to load photos with loading bar