A simple piece of C code can be used to generate binary IMA and BIM files. These types of files are only necessary for those rare occasions in which neither an ASCII IMA file or a .BMP or .JPG file can be used to describe the desired illumination of an extended source in the sequential mode of ZEMAX.