refactored draw functions to handle multi points and multi lines