Add auto crop to Matrix