Almost completely working drawing tool. One minor problem with plotting proper granularities