clean up drawMee, removing useless funcions, move common codes into functions in headers.