Fixed sample code to register for photo services

README had old sample code for registering for services that causes an error when trying to compile; updated it to match the current API.