Add photo upload function