Magnetic and geometrical control of spin textures in the itinerant kagome magnet Fe$_3$Sn$_2$