Add general image writing function
Get rid of Image, ImageInfo structs and ColFmt enum

This library is for loading/saving images, *not* for providing image
data structures. This will make it easier to switch image loading
libraries later, if need be.