Added test for negative canvas size.
Throw error if canvas size is negative.
Merge pull request #545 from libavg/bugfix/544_negative_canvas_size

Bugfix/544 negative canvas size