Matrix-calculation moved to lib + canvas-renderer now uses matrix-calculation