Plot Numpy Image Array Javascript Append To String