resize canvas  to make it behave nicely in Internet Explorer, which does not preserve width/height ratio when applying css