fat_imgen is a utility you can use to create and modify FAT12 floppy images with. It is licensed under the Fair License.
Windows and Linux users can download the latest stable binaries from the project's download page.
The source code can be checked out from http://subversion.assembla.com/svn/slipstream/fat_imgen/. It shows many aspects of working with FAT12 images.