prevent setting negative size. Fixes #38
negative size causes error in IE