display image using rest api, mat is not a numerical tuple