fixed bugs
fixed and improved the performance, debuging photograph