fixed context save issue

the context status was not restored because there was a new getContext call in the transformCoordinate function