def __init__(self, resolution=(160, 120), image=None): if image is not None: self.frame = image else: self.frame = Image.new('RGB', resolution)