Extraction of inclusive photon production at mid-rapidity in p + p and Au + Au collisions at ffiffiffiffiffiffiffi s NN p = 200 GeV