Output format of image thumbnail being generated can now be set in description

You can now set the output format of the image being generated, by setting the format flag in a thumbnail description.