remove unused function
Clean up photo handling