Gets photos loading correctly with angular