Fixed photos model to remove old credentials link to api keys