Formation of Moving Magnetic Features and Penumbral Magnetic Fields