fixed bugs in photograph, reorganize capSrc class