Sensible defaults for frame size

For non-square matrix, the default frame size is based on the size ratio of the matrix.