convert image matrix to jpeg without imwrite & imread-ing it (opencv2.4
needed)
updated CLI