setup class matriximages