There were missing dots between getContext('2d') and drawImage calls.