Add ImageType as a writer setting.

I considered having this set as enum values, but a string is more
flexible.  This meant adding validation.  At the same time, I removed
some unused methods that I had meant to remove earlier.