Compton backscattered and primary X-rays from solar flares: angle dependent Green's function correction for photospheric albedo