Working sample code to get auth token and retrieve a picture