Add configurable option to create a thumbnail for uploaded image and use it in the thumbnail preview mode if one is available