Magneto-optical observation of the flux structure in superconducting lead films near the critical film thickness