adding postcommit photo hook