Fix for issue 342
https://github.com/LearnBoost/node-canvas/issues/342