photo export functions for the api