def __init__(self, photo_size, *args, **kwargs): self.photo_size = photo_size ImageWidget.__init__(self, template=self.template, *args, **kwargs)