fixed issue #42 adding case when context is not canvas (it should be improved yet for taking advantage of raphael instead of using paper.js )