Fixed the bug with paperJS. We can draw smooth lines now