Revamped drawing API.