Global photometric structure of the Orion nebula