Modified PublishPhotoTestCases and its bean such that the test passes.
Modified getPhoto helper method.