java is not needed any more
correctly strip all newlines from base64 string
matrix shape is now transmitted correctly

Matrix shape used to be transmitted, but not applied. This is fixed now.