code: def _scale(self, image, width, height):
          
          image['options']['scale'] = '%sx%s!' % (width, height)
          image['size'] = (width, height)  # update image size
          return image
docs: Does the resizing of the image