Removing unnecessary matrix multiplications from Canvas rendering code path