Threshold enhancement of diphoton resonances