To resize canvas

so canvas drawn image matches img