def enable_alpha(self):
    if (self.image.mode != 'RGBA'):
        self.image = self.image.convert('RGBA')
def enable_alpha(self):
    if (self.image.mode != 'RGBA'):
        self.image = self.image.convert('RGBA')