Add style for all canvas tag
Change some functions to private functions