canvas only resizes if size hasn't been set explicitly