def METHOD_NAME(obj, img_str):
    if img_str:
        stream = io.BytesIO(base64.b64decode(img_str))
        # Convert string image to stream
        name = image_path(obj, filename="image.jpg")
        obj.image.save(name, stream, save=True)
    return