Fixed #3569: Use viewport to clearRect

And also: limit Canvas size for FixedWidth and FixedHeight mode