Changed matrix type to unsigned. Negative values no longer shown.