add jpeg open for riot and convert to matrix