'Called by Style.as_dict() and add_attributes_to_output()'

def as_json_dict(self):

    if self.image:
        marker = dict(i=self.image, h=self.height, w=self.width)
    else:
        marker = None
    return marker
