PDRs4All: II. JWST's NIR and MIR imaging view of the Orion Nebula