Update BaseDrawing.php

Avoid division by zero
Merge pull request #329 from sarciszewski/patch-2

Update BaseDrawing.php