Add drawing to the matrix; toggle modes.