def METHOD_NAME(request):
    image_string = request.iloc[0]["image"]
    image_bytes = base64.b64decode(image_string)
    image = Image.open(io.BytesIO(image_bytes))
    if image.mode != "RGB":
        image = image.convert("RGB")
    return image