We model the emission of high energy photons due to relativistic charged particle motion in intense laser-plasma interactions. This is done within a particle-in-cell code, for which high frequency radiation normally cannot be resolved due to finite time steps and grid size. A simple expression for the synchrotron radiation spectra is used together with a Monte-Carlo method for the emittance. We extend previous work by allowing for arbitrary fields, considering the particles to be in instantaneous circular motion due to an effective magnetic field. Furthermore, we implement noise reduction techniques and present validity estimates of the method. Finally, we perform a rigorous comparison to the mechanism of radiation reaction, and find the emitted energy to be in excellent agreement with the losses calculated using radiation reaction. (C) 2015 AIP Publishing LLC.