Search for supersymmetry with photons in pp collisions at sqrt(s) =8TeV