def _create_thumbnail(self, model_instance, thumbnail, image_name):
thumbnail = self._do_resize(thumbnail, self.thumbnail_size)<EOL>full_image_name = self.generate_filename(model_instance, image_name)<EOL>thumbnail_filename = _get_thumbnail_filename(full_image_name)<EOL>thumb = self._get_simple_uploaded_file(thumbnail, thumbnail_filename)<EOL>self.storage.save(thumbnail_filename, thumb)<EOL>
Resizes and saves the thumbnail image