paint method corrected
The problem of the paint method not getting called was fixed

Signed-off-by: Aniket Anvit <seeanvit@gmail.com>
improvement in the implementaion of straight plane

Signed-off-by: Aniket Anvit <seeanvit@gmail.com>