Draw a grid over an image using canvas