Add photo replace endpoints
Remove unused imports