def draw(self): path = ui.Path.rect(0, 0, self.width, self.height) ui.set_color(self.color) path.fill() img = ui.Image.named('Girl') img.draw()