core.matrix support for Java images