Resizing canvas to fit screen