If you want to align the image, you just have to calculate the position according to its size.
ctx.drawImage(img, c.width - img.width/2, c.height - img.height/2,c.width/2, c.height/2);
In the example above, the image is aligned to bottom right corner. Btw, I divided it by 2, so you can clearly see the alignment.