Fix a bug with negative sizes in Internet Explorer 6, 7, 8, and 9

When setting the size of the canvas size in IE to a negative value, the dreaded warning sign appears in the lower left corner of the browser with the "Error on page" message. This commit checks for a negative sign on the width and height and, if one exists, does not set the width or height.