def FromBase64(cls, data: str, *, width: int = None, height: int = None) -> 'ImageObject': Assert(data, str) return Image.FromBytes(base64.b64decode(data), width=width, height=height)