Adding image_type configuration parameter.

This parameter will control the type of image created, but currently it
has no effect. A unit test has been added for this parameter.