add 1d-tensor to image conversion util function
add 1d-tensor to image conversion util function

qinwf-nuan/keras-js,transcranial/keras-js,qinwf-nuan/keras-js,qinwf-nuan/keras-js,transcranial/keras-js,transcranial/keras-js