fixed indentation error in get_photos