Service-based API for photos