Cooper Pair Localization in Thin Films near the Superconductor-Insulator Transition