more photo backend stuff