Photo part start

1.photo part start
2. fixed bugs
3. optimize code