code: def to_dict(self):
          
          if not self.url:
              return None
          return {
              'url': self.url,
              'width': self.width,
              'height': self.height
          }
docs: Convert Image into raw dictionary data.