setup photos endpoints