Fixing a bug when the Canvas Matrix is not the identity