Plot Numpy Image Array Javascript Function Parameters