Spatially resolved observation of the critical current in high-Tc superconducting films