Changed to use model-view transform.