Update canvas getContext usage