Added methods to draw grid on canvas