corrected the sytactial issues and the tests to match the PhotoWithDistance change