On the theory of vortex motion in an inhomogeneous superconducting film