Direct observation of magnetic flux inhomogeneity in the vicinity of high temperature superconductors