Fixed sample code to register for photo services

README had old sample code for registering for services; updated to match the current API.