Removed need to supply width and height of canvas by using scrollWidth and scrollHeight upon link