code: def upload(self, picture, resize=None, rotation=None, noexif=None,
                 callback=None):
          
          if not resize:
              resize = self._resize
          if not rotation:
              rotation = self._rotation
          if not noexif:
              noexif = self._noexif
          if not callback:
              callback = self._callback
  
          return upload(self._apikey, picture, resize,
                        rotation, noexif, callback)
docs: wraps upload function
  
          :param str/tuple/list picture: Path to picture as str or picture data. \
              If data a tuple or list with the file name as str \
              and data as byte object in that order.
          :param str resize: Aresolution in the folowing format: \
              '80x80'(optional)
          :param str|degree rotation: The picture will be rotated by this Value.\
              Allowed values are 00, 90, 180, 270.(optional)
          :param boolean noexif: set to True when exif data should be purged.\
              (optional)
          :param function callback: function will be called after every read. \
              Need to take one argument. you can use the len function to \
              determine the body length and call bytes_read().