Fixed the zoomed out brush issue and also the dimensions of the canvas element.