added static methods to matrix draw