Update matrix drawing