Improved drawing engine