Adding line and curve drawing functions. Html and android work +-. Still need some work on the scale mode