Parametric image amplification in optical cavities