code: def save(self, name, content, save=True):
          
          super(ImageWithThumbsFieldFile, self).save(name, content, save)
          try:
              self.generate_thumbs(name, content)
          except IOError, exc:
              if 'cannot identify' in exc.message or \
                 'bad EPS header' in exc.message:
                  raise UploadedImageIsUnreadableError(
                      "We were unable to read the uploaded image. "
                      "Please make sure you are uploading a valid image file."
                  )
              else:
                  raise
docs: Handles some extra logic to generate the thumbnails when the original
          file is uploaded.