Set fillStyle and strokeStyle into context only if they are not 'undefined'
If canvas parent is set then canvas fits parent element, otherwise canvas fits window.
Merge pull request #16 from Unisay/master

Fix for warning "an attempt to set strokeStyle or fillStyle to a value that is neither a string, a CanvasGradient, or a CanvasPattern was ignored"